New eclipse j2's Development Environment Settings (based on Eclipse)

Source: Internet
Author: User

The development environment requires JDK, eclipse (Java IDE), eclipseme (ecilpse's j2_plug-in), and wtk (j2_development kit ).

 

To them:

JDK needs 1.4.2 If you don't use this version, some strange problems may occur when you put it on your mobile phone. Http://java.sun.com/j2se/1.4.2/download.html

Eclipse http://www.eclipse.org/downloads/ (if you are interested in Chinese development, you can also here to package Chinese nlpack1-eclipse-sdk-3.2-win32.zip)

Eclipseme http://sourceforge.net/project/showfiles.php? Group_id = 86829 (the latest version is 1.5.5 )

Wtk here we use version 2.2, where you can select English and Simplified Chinese Version Download http://java.sun.com/products/sjwtoolkit/download-2_2.html

 

 

Install JDK first. There are many other points mentioned here. Next, install eclipse,

Eclipse installation is very simple, that is, directly decompress it to what you need. If you need to use a Chinese package

To install the Language Pack, decompress nlpack1-eclipse-sdk-3.2-win32.zip to the eclipse installation directory and directly overwrite it. However, do not run eclipse before installing the Language Pack. Otherwise, you will not see the results you need after installation.

Now you can run eclipseand directly click eclipse.exe. during startup, you will be asked to select a working directory. You can set it to your working directory, if you do not change the working directory frequently, you can select the following one without prompting. If you cannot run eclipse, check whether your JDK installation is correct.

Next, we will install the eclipseme plug-in, which is not directly decompressed. You need to install it in eclipse. The installation steps are as follows:

Eclipseme1.5:
Http://jaist.dl.sourceforge.net/sourceforge/eclipseme/eclipseme.feature_1.5.0_site.zipEclipseme1.5 is only available in English. Decompress the downloaded eclipseme1.5 package. After decompression, there will be two folders: Features and Plugins. Copy the content in the two folders to the features and plugins directories under the eclipse installation directory. Start eclipse.

Next, let's take a look at eclipse to install wtk. you can install wtk by following the installation wizard.

 

After wtk is installed, let's set eclipse. First, select menu-window-preferences. In the displayed Setting dialog box, select "j2e-device management" to set the simulator used, click Import next to it and you will be prompted to select the directory where your wtk is located in the import device dialog box. Then Click Refresh to get the simulator. Then you can see several Simulators of wtk. Click Finish to import these devices. At this time, you can perform the development of the j2e-based architecture for your convenience.

 

Here I will introduce the necessary settings in use.

1. Configure javadoc for j2m2. if you want to have an API prompt in the editing environment, you can set up the simulator in the previous step.

Select the simulator for which you want to set the javadoc, select edit, click libraries on the tab, select the project of the API you want to set, and click javadoc to set it.

2. You need to re-set the debugging for the j2_based architecture. Otherwise, your simulator cannot be started. In the preference, select Java-debugging.

, Remove all options in the temporarily suspended execution, and adjust the debugger timeout in communication to 20000 milliseconds. In this way, the debugger can be successfully started to debug the agent.

3. Set the build path based on your preferences. If you want to separate the resources from the source code, you 'd better select this option as a folder.

4. Set obfuscators. Eclipse obfuscators will be used during the packaging process of j2-based,

We have not set obfuscators and cannot use "create obfuscated package ". Obfuscators are useful for reducing the jar package size and preventing program decompilation. Therefore, it is necessary to set obfuscators in the j2s development environment.

In this case, you need

Http://sourceforge.net/project/showfiles.php? Group_id = 54750 download a proguard obfuscator. After decompression, select the obfuscator directory in the options of the obfuscator.

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.