Establish a mobile development platform for j2m's

Source: Internet
Author: User

I have been preparing to configure the mobile development environment recently. Finally, I found a configuration environment explanation. Post it for your reference.

First, we will introduce the two names cldc and MIDP. Now, you don't need to understand these two concepts. After you finish learning them, you will find yourself aware of them. Cldc (connected limited device configuration) is the minimum API used to develop applications running on wireless devices. Cldc describes a minimum set of features required by all wireless mobile devices. The MIDP (mobile information device profile) is based on cldc and is used to describe mobile phones, which are more specific to wireless mobile devices. For the javame platform, MIDP defines a standard Java API set. Together with cldc, the Set provides a complete Java me application running environment for mobile information devices.

Next, we will explain the tools required for developing Java mobile apps and the installation and configuration methods:

The first place is our JDK. Get jdk6.0 on thunder and install it on your computer. JDK 6 does not need to set environment variables, so you can install it directly by entering.

Then install the wtk wireless toolkit. My version is wtk2.5.2. This can be downloaded from http://java.sun.com/jeme. The url I opened at that time is http://java.sun.com/products/sjwtoolkit/zh_download-2_5_2.html. I do not know that I can't use it now. During wtk installation, you will be asked to find the JVM location (JVM is the meaning of Java virtual machine, do not understand why). If JDK is installed, it will be automatically found, we can proceed to the next step. Therefore, JDK must be installed before wtk is installed.

After the two suits are ready, you can use NotePad to develop the mobile app and see the running effect (a simulated mobile phone interface will appear ). Of course, we can't always use NotePad to write programs during development. This is too inefficient, so we need to download an IDE. For Java programming, the preferred IDE is eclipse. Eclipse can go to eclipse3.3.2 from the Internet. You can download and download eclipse and decompress it directly.

In order to use eclipse to develop the J2EE program more conveniently, we also need to install a eclipseme plug-in on Eclipse. Eclipseme can be downloaded from the official website: http://www.eclipseme.org. Download the package eclipseme.feature_1.7.7_site.rar. When installing this plug-in, eclipse also needs to bind wtk. The procedure is as follows:

1. Install the eclipseme plug-in. Open eclipse, help-Software Update-find and install-search for new feature components to be installed (that is, the option below)-create a site to be archived (the third of the seven options on the right ). Then, you can find eclipseme.feature_1.7.7_site.rar in the pop-up window. Click OK and return to the previous page. In select the features to install, all functions are selected, and the plug-in is successfully installed by default. After installation, you will be prompted to restart eclipse.

2. Bind wtk. Open eclipse. Window -- preference. A dialog box is displayed. Select device management in the content of the agent. Click Import on the right. In the displayed import device dialog box, go to the directory where wtk is installed. Refresh the page and you can see the imported devices in the following table (4 devices, 4 mobile phone simulators ). Click Finish. Return to the "Preferences" dialog box, and you can see the four types of devices we have bound in the table on the right. Select one as the default device. Click OK. The binding is complete.

In this way, a mobile programming environment is set up. We can create a new j2-midlet suite project in eclipse. You can program the mobile phone by setting up the j2-midllet file in the project.

 

Several development tools are involved in the above installation process.

1: wtk is Sun j2's wireless toolkit-sun's Wireless Development Kit. This toolkit is designed to help developers simplify the development process of j2s. You can use the tools to develop the j2s applications running on devices compatible with Java technology for the wireless industry (jtwi, JSR 185) specifications. The toolkit contains a complete generation tool, utility, and device simulator. At the time of writing this article, you can obtain four versions: 1.0.4, 2.0, 2.1, and 2.2. Each version includes four language packages: English, Japanese, simplified Chinese, and traditional Chinese.

 

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.