The Oracle Java ME SDK 3.4 platform is a sophisticated and useful tool for programmers who want to develop embedded applications. The Oracle Java ME SDK 3.4 platform can be used successfully and easily with the NetBeans 7.3.1 Integrated Development Environment, as well as the Eclipse (Indigo 3.7, Juno 4.2, or Kepler 4.3) IDE.
![Oracle Java Me Sdk 3.4 Oracle Java Me Sdk 3.4](http://docs.oracle.com/javame/config/cldc/rel/3.4/orion/html/getstart_orion/img/logger1.jpg)
Oracle Java ME SDK 3.3. Along with the update of Oracle Java ME Embedded, the Oracle Java ME SDK toolchain has been updated to support the new Java ME Embedded features and platforms as well as improved device emulation, integrated memory and network monitor, usability enhancements, full Windows 7 support, and more. The NetBeans and Eclipse. Java ME SDK 3.4は、Oracle Java ME Embedded 3.3および3.4でサポートされている、すべての開発ボードとプラットフォームを使用したアプリケーション開発とデプロイがサポートされています。 Java ME Developer Toolドキュメント Java ME Embeddedドキュメントとその他のリソース.
Note: The Oracle Java ME Embedded 3.4 runtime is fully implemented inside Oracle Java ME SDK 3.4 software. So, there is no need for you to independently install Oracle Java ME Embedded 3.4 software. |
This chapter provides information you need to ensure that your Microsoft Windows XP (32-bit) or Windows 7 (32-bit or 64-bit) platform is correctly set up for working with Oracle Java ME SDK. Both Windows XP and Windows 7 must include the most recent Microsoft service packs.
Installing the Java SE Platform
To properly run the Oracle Java ME SDK software and its associated Tools, you must have Java Platform, Standard Edition (Java SE), Version 7, Update 25 (or later) installed on your computer.
This guide assumes you have already installed the Java SE platform. If you have not installed Java 7, Update 25, you can download it from the following location:
http://www.oracle.com/technetwork/java/javase/downloads
The installation of Eclipse Indigo 3.7 requires Java 6, Update 17 as the reference platform. It may work with other Java versions, but it is not recommended by Eclipse. To get Java 6, Update 17:
http://www.oracle.com/technetwork/java/javase/archive-139210.html
The Java SE platform must also be in your PATH.
Setting and Verifying Your Java SE PATH
To verify if Java SE platform is set in your PATH:
- In the Windows command line, type:C:>echo %PATH%
- If Java SE is properly installed, you see a path to the default installation directory:C:>Program FilesJavajdk1.7.0_x
- If not, you need to add Java SE to your PATH.Note:Setting the PATH may require using a Windows short name. To see top-level Windows short names, type C:>dir /x
- Set the Java SE variable, JDK_DIR:C:>set JDK_DIR=C:Program FilesJavajdk1.7.0_25
- Add JDK_DIR to your PATH:C:>set PATH=%PATH%;%JDK_DIR%bin
- To verify the version of your Java SE platform, type:C:>java -version
The version number shown in the output should be version 1.7.0_25 or higher.
Installing the Oracle Java ME SDK Platform
Follow these steps to install the Oracle Java ME SDK 3.4.
- If you have previously installed an earlier version of Oracle Java ME SDK, uninstall the previous version as shown below.Note:If you are installing Oracle Java ME SDK for the first time, skip to Step 2.
- If you have Oracle Java ME SDK data to save, copy it to a safe location before continuing.
- In the Windows system tray, right click the emulator icon and choose Exit.
- From the Windows Programs menu, select the previous version and choose Uninstall from the submenu. The Installer opens.
- On the first page check the option to remove the user data directory.
- Follow the prompts.
- Download the SDK from:
http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk
- Double-click the executable. When the installer starts, follow the prompts.
Installing and the Starting the NetBeans IDE
If you do not already have the NetBeans 7.3.1 IDE installed on your system, you can download it here:
https://netbeans.org/downloads/
Once you have downloaded the NetBeans installation module, do the following.
- Double click the NetBeans executable file,
netbeans-7.3.1-windows.exe
. - When the NetBeans Installer starts, follow the prompts.When the installation is complete, NetBeans creates a shortcut on your desktop.
- Double click the NetBeans IDE 7.3.1 shortcut to launch NetBeans.
Figure 1-1 The NetBeans Start Screen
Description of 'Figure 1-1 The NetBeans Start Screen'
Note: Oracle Java ME SDK 3.4 also supports NetBeans 7.4 Beta. However, its use is not described in this guide. |
For more information on working with the NetBeans IDE, see
Installing and Starting the Eclipse IDE
If you do not already have Eclipse Indigo 3.7 installed on your system, you can download it here:
http://www.eclipse.org/downloads/packages/release/indigo/sr2
You can download Juno 4.2 here:
You can download Kepler 4.3 here:
http://www.eclipse.org/downloads
Once you have downloaded the Eclipse Kepler 4.3 executable,
eclipse-java-kepler-ga-offline-installer-windows.exe
, double-click -it to start running and follow the prompts.Note: For Eclipse Kepler, you must also specify a directory location in which to store your Eclipse project files, as shown in Step 3, below. |
For the Eclipse Indigo 3.7 or Juno 4.2 installation modules, do the following to install Eclipse on your system:
- In the
C:Program Files
directory, unzip the Eclipse distribution zip file. - In the
C:Program Fileseclipse
directory, clickeclipse.exe
to launch Eclipse. - When the Select a Workspace dialog box appears, specify a directory location in which to store your Eclipse project files. Click OK.Figure 1-2 The Eclipse Workspace Launcher
Description of 'Figure 1-2 The Eclipse Workspace Launcher'This opens the Eclipse main screen, as shown in Figure 1-3.Note:Eclipse Kepler 4.3 is similar to Juno 4.2 and Eclipse 3.7. The instructions you see for those versions in this guide also apply to Kepler 4.3.Figure 1-3 The Eclipse Start Screen
Description of 'Figure 1-3 The Eclipse Start Screen' - Click the icon on the far right (it says 'Workbench'). This displays an empty workbench screen, as shown in Figure 1-4.Figure 1-4 The Eclipse Workbench Start Screen
Description of 'Figure 1-4 The Eclipse Workbench Start Screen'
For more information on working with the Eclipse IDE, see
Verifying the UART Prefix
Lastly, verify that the
deviceaccess.uart.prefix
property in the jwc_properties.ini
file contains a prefix that will make it easy to convert the UARTConfig.portNumber
value to a platform-specific port name. This is used for COM port discovering.Note: If you are planning to work only in emulation, you can skip this step. |
In the Win32 environment, the property should be set to
COM
so that appending a port number maps correctly to the proper port name. Add the following line to the jwc_properties.ini
file:deviceaccess.uart.prefix=COM
The
jwc_properties.ini
file is found in the following location:C:Java_ME_platform_SDK3.4runtimesimpngbin
The Oracle® Java Micro Edition (Java ME) Software Development Kit (SDK) is a natural starting point for learning and using Java ME technology. The focus of the SDK is to provide emulation and deployment assistance during the development process. This chapter introduces the SDK and provides a quick introduction to using the SDK.
Using this simple yet powerful tool you can create, edit, compile, package, and sign an application. After testing your application in the Oracle Java ME SDK emulation environment, you can move to deploying and debugging on an external device.
This chapter provides information you need to ensure that your Microsoft Windows XP (32-bit) or Windows 7 (32-bit or 64-bit) platform is correctly set up for working with Oracle Java ME SDK. Both Windows XP and Windows 7 must include the most recent Microsoft service packs.
1.1 Installing the Java SE Platform
To properly run the Oracle Java ME SDK software and its associated Tools, you must have Java Platform, Standard Edition (Java SE), Version 7, Update 11 (or later) installed on your computer.
This guide assumes you have already installed the Java SE platform. If you have not installed Java SE, you can download it from the following location:
http://www.oracle.com/technetwork/java/javase/downloads
The Java SE platform must also be in your PATH.
1.1.1 Setting and Verifying Your Java SE PATH
To verify if Java SE platform is set in your PATH:
- In the Windows command line, type:C:>echo %PATH%
- If Java SE is properly installed, you see a path to the default installation directory:C:>Program FilesJavajdk1.7.0_x
- If not, you need to add Java SE to your PATH.Note:Setting the PATH may require using a Windows short name. To see top-level Windows short names, type C:>dir /x
- Set the Java SE variable, JDK_DIR:C:>set JDK_DIR=C:Program FilesJavajdk1.7.0_13
- Add JDK_DIR to your PATH:C:>set PATH=%PATH%;%JDK_DIR%bin
- To verify the version of your Java SE platform, type:C:>java -version
The version number shown in the output should be version 1.7.0_11 or higher.
1.2 Installing the Oracle Java ME SDK Platform
Follow these steps to install the Oracle Java ME SDK 3.4.
- If you have previously installed an earlier version of Oracle Java ME SDK, uninstall the previous version as shown below.Note:If you are installing Oracle Java ME SDK for the first time, skip to Step 2.
- If you have Oracle Java ME SDK data to save, please copy it to a safe location before continuing.
- In the Windows system tray, right click on the emulator icon and select Exit.
- From the Windows Programs menu, select the previous version and select Uninstall from the submenu. The Installer opens.
- On the first page check the option to remove the user data directory.
- Follow the prompts.
- Download the SDK from:
http://www.oracle.com/technetwork/java/javame
- Select
download
in the right column. - Download the Oracle Java ME SDK executable.
- Double-click on the ME SDK executable. When the installer starts, follow the prompts.
1.3 Installing and the Starting the NetBeans IDE
If you do not already have the NetBeans 7.3 IDE installed on your system, you can download it here:
http://dlc.sun.com.edgesuite.net/netbeans/7.3/final/
Next, optionally select your Language and Platform, and then download the version that contains all supported technologies. The approximate size of executable distributive is 198 MB. Once you have downloaded the NetBeans installation module, do the following:
- Unzip the NetBeans distribution zip file into the
C:Program Files
directory. - In the
C:Program FilesNetBeans 7.3bin
directory, click onnetbeans.exe
to launch NetBeans, as shown in Figure 1-1.
Figure 1-1 The NetBeans Start Screen
Description of 'Figure 1-1 The NetBeans Start Screen'
The Oracle Java ME SDK is also a plugin to the Eclipse IDE. For more information on using Oracle Java ME SDK with the Eclipse IDE, see Oracle Java Micro Edition Software Development Kit Developer's Guide for Eclipse.