J2ME mobile development platform construction

xiaoxiao2021-03-06  43

J2ME mobile development platform construction

To develop J2ME development, we must first establish a development platform, and there are three programs on the development of platforms, and recommend them to everyone here.

First, the full-functional Borland JBuilder platform builds this platform, we must install: JBuilder 7 or JBuilder 8, Borland's MobileSet 3.1. Optional materials are: (Note that these are not required, without these, you can also develop) the mobile phone SDK you want to develop, for example, to develop on NOKIA must be prepared

Nokia Developer's Suite, you can also add some simulators such as 7210, according to yourself. With the above materials, we have enough for us to build a very good development platform. Construction steps: (1): Install JBuilder and register. (Note: D-version JBuilder 8 users, some D version of JBuilder8 on the market will cause the next installed MobileSet that cannot be activated, that is, no matter how you configure, the option in the MIDP page is always ash, Do not use crack files in it, register with registration machines)

(2): Install JBuilder correctly, and after successful registration, install MobileSet 3.1, after the installation is complete, you need to register, the mobileSet is free, you can register to the Borland, or registration in Appendix 3. (3): After completing the above 2, you must install the developer's suite and simulator you can install (see Appendix 1 for the NOKIA SDK Installation Method). (4): Correctly completed the above steps, it can be said that this platform has been completed, it is so simple, below you have to do it is in jbuilder, a project, in appearance

In the form of JDK selection J2ME, others can use the default, after completing the configuration, choose New, then two options in the final MIDP page should be optional, take next

Come you can develop.

2: Sun official tool, use the convenient platform J2ME_wireless_toolkit; build this platform, we must install: JDK1.4, J2ME_Wireless_Toolkit 1.04 or J2ME_wireless_toolkit 2.0 beta1 optional material is: (note that these are not required, no You can also develop) the mobile phone SDK you want to develop, for example, to develop NOKIADEVELOPER's Suite on Nokia, and you can add some simulators such as 7210, etc. (NOKIA SDK installation method see Appendix 1). With the above materials, we are enough for us to build the current platform. (1): First install JDK1.4, (in method one because JBuilder comes with JDK, it is not necessary to install separately.) (2): After installing JDK, you can install J2ME_Wireless_Toolkit, no matter 1.04 or 2.0 beta1 Option, 2 are all installed. (3): After completing the above 2, you must install the developer's suite and simulator you can install (see Appendix 1 for the NOKIA SDK Installation Method). (4) Correctly completed the above steps, it can be said that this platform has been set up, some rookies may ask this J2ME_wireless_toolkit what is doing, in fact, its role is similar to JBuilder, used to compile yours, but it itself Do not provide editing, so you have to use Notepad or other text to edit software write programs, see Appendix 4

3: The smallest head is smaller, but it is more complicated platform CLDC MIDP to build this platform, we must install: JDK1.4, J2ME_CLDC_ 1.04, MIDP 2.0 to use this platform method I don't particularly know, only rough Introduction (1) The same first should first install JDK1.4 (2) Put J2ME_CLDC_ 1.04, MIDP 2.0, and Umbrace Under the same directory, in C: / J2ME, in fact, these two are compilers and JBuilders under the command line. Toolkit role

Like, it is more troublesome. (3) In detail, see Appendix 5 is introduced, I hope to help the rookie you just start, there is any mistake, please refer to the text, the article quoted the other author's text, thank you.

Appendix 1: Nokia SDK is installed in JBuilder (in fact, there is no JDK, JBuilder comes with JDK) or JDK, NOKIA's developer's

Suite can be installed, in the installation of the developer's suite, must be installed in the Device Directory of Nokia's Developer's Suite, below is NOKIA's Developer's Suite and some simulator's registration code nds_jme_v1.1 (Nokia Developer Suite ") username: allyfeng serial number: pJzPqsT0PjnMEwaTR2Ga WiCeSk = ns40 username: allyfeng serial number: HgaDbt1HpXFucqDp97ThNjvN468 = 7210 username: allyfeng serial number: 89YPeBKM6tzssXLLi5OxuDdhcyk = Nokia 6650 emulator registration information: username: allyfeng serial number : PLKVTJRKBZPLQIXRQYB0CZF969W = Appendix 2: Registrar usage method I recommend using jblicensegenw.exe to use simple, use JBuilder to use, can register J7, J8. Mr. into the registration code, take a registration code in SAVE. I didn't tried it later. If you run JBLICENSEGENW.EXE without reflection or an error, you may be your JBuilder is not installed. I don't know how to solve it.

Appendix 3: JBuilder MobileSet 3.0.1. JBUILDER7 or JBUILDER8 is required first. Registration method: Create a text file, copy the following registration code to the file, save. When you register, select Active File, then load this file. Registration code: ----- Begin Block -----% C5% 17% D% 9B% 00% 02i% DE% DAL% 2C% B2% F7% 9DE% 80C5% A6% E5% AF% 7C% A7% 06% 05% D1% B1% B5% 0A% 955L% 87% E5% E6% 5B% 8C% 0D% 01% A9% EE% EB-% A9% 21% 7C% E7% 8A% E2 % 1D% B6LZ% E2% F1% FB0% E3% 7B% 1F% F6% E3% 9A% 3E% E4% 1D% 2B% FD% FB% CD% 5C% D6% 2BO% FB% f6% 89% 7F % D8J% 3e% 96% 8C% 98L% C0% 03% 15% 86% D3% FET% 81% 1BF% 8F% DD% B6% 02% D76Z% Fe% E4% 8B% 5B% D8% 02% 1D % BD% F1% B0P% A9% 27% 13% F6% 8F% AE% 0D% 8A% 7FR% 99% ED% 93% 22% 82V% 2B% E7% 9B% AFT% C3Q% 1F% 8E% CC % BFP% A52% 26% DC% 9F% 8EC% D3% 1CU% D1% AA% ADB% DA% 1B% 2B% A0% 8A% D2I% B3% 0C% 20% C2% DC% 81R% E3G% 0A % 90% E4% B2E% 9D% 11% 3A% F1% 90% D2_% A0% 7BO% C0% A4% A3% 17% 98% 1e% 21% EE% 9D% B3% 24% 9ak% 1A% A5 % BE% be% 3E% EAG-% F1% B6% 9BL% BA-% 2F% F8% D5% E2% 23% C0J% 27% E8% B2% ADS% F6T% 03% C0% D6% E7% 3E % E96% 28% 95% C3% E7Z% F4% 3Eh% B3% B3% D2Y% A9F% 16% 92% 93% 88% 1A% A4MW% 85% A1% 92i% B0% 5BQ% A7% EF% 87i % D2% 7F% 3D% 8A% A0% A3Y% BEQC% EA% 8A% 8E% 08% 95% 02% 7e% 9A% FF% DBE% 80% 40% 04% 8A% DB% BBD% A7G% 3D % C7% A6% E0% 7C% 90% 29 *% EC% E0% ABX% D4% 29N% D0% DA% A6P% D6% 11% 1e% ED% 90% 9D% 1B% E7S% 10% FD% B6% BF% 14% A9% 07P% B9% B0% C1O% 9DS% 14% 8C% 87% 99E% F7% 18% 1e% 9C% EB% FDC% B4% 13A% D9% 9D% 8D% 2C% 97% 1A8% C1% AF% D3X% 87% 7FG% E6% 94% 98% 26 % 90J% 10% C8% EC% 864% C2SN% E5% 9E% D8T% EFEZ% BB% 8A% D1% 20% CD5% 0B% FC% E3% CC% 19% 89JV% C4% D9% E1R% A2z0 % BE% DD% A4J% 91H% 0D% E3% F1% 9C% 2B% ED% 06% 60% E1% F2% FAX% CA% 18F% de% FB% ABW% 93Q% 29% D5% EE% BFF % A4% 3E% 02% B0% C6% adH% 98P% 0D% CE% Fe% FC% 7F% AE% 07% 04% 8E% C7% F9D% AD% 29% 7C% DF% AF% B5V% 98 % 20% 1C% A5% 89% ED% 7F% B5RU% EC% AB% FCQ% AFZ% 5C% F4% 9B% A7% 5D% 8C_% 17% D8% CF% B1% 5B% D6G% 28% B2 % EE% F8% 02% A0% 0FO% C3% B4% ECG% 9E% 3D% 26% C2% CC% F4E% FF_% 3C% A5% 91% BB% 1C% D3% 26V% DA% F7% 95U % BD% 3CF% D9% EE% E7% 27% C8% 15% 3D% E7% A3% 9E_% AAR% 7C% 92% F8% CD% 13% 9D% 1E4% 9F% 84% EFT% 8F% 5CO % DB% B0% D4L% 8CHN% 83% E4% CE% 3F% F32V% 95% AA% A2F% 97P% 2F% E5% E5% D8D% 91HC ----- End block -----

Appendix 4: Toolkit Usage Launch Kit, I really don't know how to do it, say that you will not know how to start, OK, then find the KTOOLBAR program to start it. Press the CREATE Project button to create a new project. The system prompts you to enter the name of the project and the name of the primary MIDlet class, and you can write anything, this class should run when the application is started. The toolkit will create a project directory with the item you entered. Check if the item properties displayed are correct, we will also look back and check it out. Write the Java program source code (or copy existing code) with Notepad and save the program code to the SRC subdirector of the directory named by the previous KTOOLBAR. Press the build button to compile, then press the RUN button to test the program in the test simulator.

Appendix 5: First download the following software: JDK 1.2 or higher http://java.sun.com/J2SE / limited connection device configuration (CLCDHTTP: //www.sun.com/software/communitysource/j2me/download.htmlmidHttp : //java.sun.com/products/midp/

Note: You need JAVAC command in JDK to compile MIDlets. Download, decompress the above software, put it in the recommended directory: c: /jdk1.2c: / j2me│MIDP│CLCD This article is assumed to be C: / J2ME

To test MIDP applications, you need to install MIDP and CLCD.

Configure the Run Environment Set the environment variable, modify the PATH to add the MIDP and JDK's working path. Set the environment variable to set the variable in the path, open autoexec.bat with the text editor, or type the sysedit command in the start run, and insert it two lines, we assume your * work system and JDK

All installed under C. SET PATH =% PATH%;% javaHome% / bin; Path = C: / Windows; C: / WINDOWS / Command; C: / JDK / BIN; C: / J2ME / MIDP / BIN;% PATH% Check your environment Variable Settings Successfully Type the following command under the command line: C: / MIDP Enter. A window should be popped up, such as (Figure 1). Set screen color c: / set screen defth = 8c: / midp -des criper run.jad effect See Figure 2, you can now prepare for the first MIDP.

Hellomidlet's description file About Hellomidlet example, http://wireless.java.sun.com/midp/Articles/intro/; Midlet-name: Hellomidletmidlet-version: 1.0.0midlet-vendor: Sun Microsystems, Inc.midlet-des cription: a Simple Examplemidlet-info-urlhttp: //java.sun.com/j2me/; midlet-jar-url: Hello .jarmidlet-jar-size: 1063Microedition-Profile: MIDP-1.0Microedition-Configuration: CLDC-1.0Midlet-1: hellomidlet, Hellomidlet

Compile, check, package and run compilation, type the following command (should be implemented in a row): c: / javac -d ./ -bootclasspath c: / pathto / midp / classes Hellomidlet.java

转载请注明原文地址:https://www.9cbs.com/read-60117.html

New Post(0)