Use eclipse to configure the WAP Development Environment

Source: Internet
Author: User

After I reinstall my computer, I want to configure it to be used forProgramTo develop a system platform, you must first prepare the following software:

    1. J2sdk 1.4.2Eclipse is an outstanding and famous open-source project. It is developed in Java language but does not contain the Java Runtime Environment. Therefore, install JDK first, currently, the version 1.4.2 is commonly used and can be downloaded in java.sun.com. the file name is usually j2sdk-00004_2-windows-i586.exe.
    2. Eclipse SDK 3.1.2Decompress the downloaded package in the original path. It can be used as a green software. However, you cannot directly decompress the package to overwrite the old version. Otherwise, unexpected errors may occur. Here is a download link:Http://ftp.jaist.ac.jp/pub/eclipse/eclipse/downloads/drops/R-3.1.2-200601181600/eclipse-SDK-3.1.2-win32.zip
    3. NDS for j23.0.1(Nokia developer's suite for the Java (TM) 2 platform, Micro Edition version 3.0.1 for Windows) which includes the Nokia prototype SDK 2.0.nokia's mobile phone Development Kit is the preferred kit for j2's development, after all, its market share is among the top.
    4. Other optional sdksI chose the Nokia prototype SDK 4.0 (Nokia protype SDK for j2-v4.0) because it comes with a more comprehensive and representative mobile phone simulator (emulator) that can be used as a supplement to NDS.

It is worth noting that all development tools and software packages related to Nokia must register an account at the Nokia Development Forum before downloading.

The first step is to install the software package. Of course, you can directly run the j2sdk-00004_2-windows-i586.exe installed in the Java Runtime Environment. After a restart, you can start the installation.NDS for j23.0.1You can select the installation path and select the installation mode during installation.NDS for j23.0.1With eclipse, NDS will install plug-ins for eclipse. Of course, after this method is selected, you must specify the path of the eclipse program, that is, decompressEclipse SDK 3.1.2The directory where the installation package is located. The installation can be completed smoothly.

 

After installing other sdks in a similar process, you need to configure eclipse.

In the eclipse menu window-> preferences-> installed jres items, select AddJ2sdk 1.4.2AndNDS for j23.0.1(Usually C:/Nokia/devices.

Now you can create a Java project named "MIDP Project (Nokia SDK plug-in)" to write a simple helloworld program.

At this time, there should be several newly added icons on the eclipse toolbar, And the NDS Sub-item is included in the menu tools. All NDS functions can be directly called here.

 

The process of writing a Java MIDlet program is similar to that of a General j2se program, but you still need to set it during running. In the Configuration window of the running menu, right-click the Nokia SDK plug-in, select New to create a MIDlet running configuration for the current project. After you select a simulator and set the main class, click Run to run the program you just compiled in the simulator. at this point, the environment for developing the j2's mobile phone program under eclipse is almost ready. using the NDS tool, you can easily develop and release the j2s program, and even edit ringtones.

 

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.