Configure the eclipse J2EE development environment

Source: Internet
Author: User
  • Configure eclipse
  1. Download JDK, jdk-6u10-beta-windows-i586-p.exe from the sunwebsite.
  2. Download wtk,sun_java_wireless_toolkit-2_5_2-windows.exe from the sunwebsite.
  3. Then install JDK before wtk. My installation paths are: D:/Java/jdk1.6.0 _ 10 and D:/Java/wtk2.5.2.
  4. Download eclipse, I used: wtp-all-in-one-sdk-R-1.5.5-200708291442-win32.zip, decompress to: D:/j2-eclipse
  5. You need to use the plug-in eclipseme. Download it here. I use eclipseme.feature_1.7.9_site.zip.
  6. Run eclipse, configure the learning path, select help> Software Update> Find and install> search for the new feature to be installed, select the newly created site, select eclipseme.feature_1.7.9_site.zip, install and restart eclipse
  7. Select preference-> j2-> device management-> Import under specify search directory, select the wtk mode you have installed
    Directory of the parsers
  8. Select refresh and press finish. Use defaultcolorphone as the default mode. At this time, the simulator is configured for eclipse.
  9. You need to use the proguard plug-in. Download it here. I use proguard4.2.zip and decompress it to: D:/j2/proguard4.2.
  10. Go to the "Preferences" Page and find the options. For details, click "j2-> packaging-> obfuscation". In the box on the right of the proguard root directory, select
    The unzipped proguard4.2 folder and application are configured with obfuscators for eclipse.
  11. Go to "Preferences" to find, Java-> debug, and temporarily execute "when no exceptions are caught" and "when a compilation error occurs
    Execute the two options to "unselected" status, and then set the value on the right of the debugger timeout (in milliseconds) to 15000
  12. Configuration complete
  • Use eclipse for j2_based Development
  1. Create the j2-midlet suite under the j2-based architecture, enter the project name, and click Next.
  2. Create a new j2-midlet, enter the name, and complete
  3. Click "run" to create a new running configuration for wireless toolkit emulator. The mobile phone style appears and runs successfully.
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.