Oracle Java Me Sdk 3.4 Download

Oracle Java ME SDK 8.3.1 is available. We are pleased to announce an update for the Oracle Java ME Software Development Kit (SDK). Oracle Java ME SDK is a standalone development environment and a set. Why Java me platform 3.4 does not support on netbeans 8.2 Question Closed 04e3b2c6-443c-4121-a057-6c5fc91d5ac9 336 views 0 comments 0 points Started by 04e3b2c6-443c-4121-a057-6c5fc91d5ac9 Oct 15, 2017 3:31AM. I just tried it, with NetBeans 7.2.1, and the Java ME SDK 3.2. The version of NetBeans I used was from this download page and was the Java EE version. One easy thing to miss in the steps below is that on this download page, you need to download both the Java ME SDK and the Java ME SDK Plugin for Netbeans. Not just the plugin. A new release of Oracle Java ME Embedded 8 is now available for download on OTN. Oracle Java ME SDK 8.2 is also delivering the embedded development experience to.

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.


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:

  1. In the Windows command line, type:

    C:>echo %PATH%

  2. If Java SE is properly installed, you see a path to the default installation directory:

    C:>Program FilesJavajdk1.7.0_x

  3. 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


  4. Set the Java SE variable, JDK_DIR:

    C:>set JDK_DIR=C:Program FilesJavajdk1.7.0_25

  5. Add JDK_DIR to your PATH:

    C:>set PATH=%PATH%;%JDK_DIR%bin

  6. 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.

  1. 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.

  2. Download the SDK from:

    http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk

  3. 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.

  1. Double click the NetBeans executable file, netbeans-7.3.1-windows.exe.

  2. When the NetBeans Installer starts, follow the prompts.

    When the installation is complete, NetBeans creates a shortcut on your desktop.

  3. 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.


See full list on oracle.com

For the Eclipse Indigo 3.7 or Juno 4.2 installation modules, do the following to install Eclipse on your system:

  1. In the C:Program Files directory, unzip the Eclipse distribution zip file.

  2. In the C:Program Fileseclipse directory, click eclipse.exe to launch Eclipse.

  3. 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'
  4. 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

Using the Eclipse integrated development environment, you can create and test embedded applications using a graphical development environment.


Note:

The examples in this chapter use the Eclipse Indigo 3.7 platform.


Installing the Oracle Java ME SDK Eclipse Plugin

The Oracle Java ME SDK Plugins are the same for the Kepler 4.3, Juno 4.2, and Indigo 3.7 platforms.

To download the Oracle Java ME SDK Plugins file for Eclipse (oracle-jmesdk-3-4-rr-eclipse-plugins.zip), go to the following location:

http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk

Installing Plugins on Eclipse Indigo 3.7

  1. In Eclipse, go to Help > Install New Software. This displays the Available Software screen, as shown in Figure 4-1.

    Figure 4-1 The Eclipse Available Software Screen


    Description of 'Figure 4-1 The Eclipse Available Software Screen'
  2. Press the Add button. This displays the Add Repository window.

  3. In the Add Repository window, press the Archive button to open a file browser.

  4. In the file browser, select the Eclipse plugin file that you downloaded. Click Open to return to the previous dialog.

  5. The Add Repository window appears. Press OK.

  6. The category Java ME SDK Tools appears in the Name area. Check the box in front of Java ME SDK Tools and ME SDK Demos as shown in Figure 4-2. Click Next.

  7. Figure 4-2 Selecting Oracle Java ME SDK Plugins


    Description of 'Figure 4-2 Selecting Oracle Java ME SDK Plugins'
  8. The installation details are displayed. Press Next. The items you checked are listed, as shown in Figure 4-3. Press Next again.

    Figure 4-3 Eclipse Plugins Installation Details


    Description of 'Figure 4-3 Eclipse Plugins Installation Details'
  9. Accept the terms of the license agreement and click Finish.

  10. Check the Java ME SDK Tools Category and its subcategories and press the Next button to start the Add wizard.

  11. Accept the terms of the license agreement and click Finish. The installation process starts.

  12. When the installation process completes, restart Eclipse. The Eclipse Welcome Screen is displayed, as shown in Figure 4-4.

    Figure 4-4 The Eclipse Welcome Screen


    Description of 'Figure 4-4 The Eclipse Welcome Screen'

Installing Plugins on Eclipse Kepler 4.3 and Juno 4.2

On Eclipse Kepler 4.3 and Juno 4.2, installing the Oracle Java ME SDK plugins requires the Eclipse Mobile Tools for Java (MTJ) toolkit. The MTJ is not bundled with Juno and must be installed manually, before installing the Eclipse plugins.

To install the Eclipse Mobile Tools for Java toolkit:

  1. Go to Help > Install New Software.

  2. In the “Work with” field, enter this URL:

    http://download.eclipse.org/mtj/updates/1.1.2/stable/

  3. Click Add.

    When the plugins are discovered, open the Mobile and Device Development Tools hierarchy and check Mobile Tools for Java Examples and Mobile Tools for Java SDK. Click Next.

    On the installation screen select all plugins and click Finish then click OK.

  4. A Juno plugin named org.eclipse.jetty.server_<version>.jar conflicts with the MTJ libraries when the plugin version is higher than 6.

    If the org.eclipse.jetty.server version is higher than 6 you must prevent it from loading by changing its name so the JAR file is not parsed. Locate the file in the plugins directory of your Juno installation and change the extension from .jar to something else.

    For example, change it to: org.eclipse.jetty.server_<version>.old


Note:

Once you have installed the MTJ toolkit for Eclipse Kepler 4.3 or Juno 4.2, the procedure for installing the Oracle Java ME SDK plugins is the same as for Eclipse Indigo 3.7. See 'Installing Plugins on Eclipse Indigo 3.7'.


Configuring Eclipse

To configure Eclipse, follow these steps:

  1. Select Window > Open Perspective > Other and choose Java ME, as shown in Figure 4-5. Click OK.

    Figure 4-5 Selecting Java ME for Configuration


    Description of 'Figure 4-5 Selecting Java ME for Configuration'
  2. Select Window > Preferences > and expand the Java ME node.

  3. Select Device Management. The Device Management page displays a list of devices used by Oracle Java ME SDK projects.

  4. Click the Manual Install... button, to the right of the Device Management screen.

  5. In the Specify Search Directory field, enter or browse to the location of the Oracle Java ME SDK platform installation. For example:

    C:Java_ME_platform_SDK_3.4

  6. Click OK. When the five default emulators are detected, make sure all the devices are checked and click Finish.

  7. Click OK to close the installation window.

    This returns you to the Eclipse main window. The Oracle Java ME SDK is now ready to use.

Creating a Sample IMlet File

In this section, you create a sample IMlet file, IMletDemo.java, from the code provided in Example 4-1. This IMlet file is used in the next section, 'Creating a New Oracle Java ME SDK Project in Eclipse.'

  1. Copy the code shown in Example 4-1 into a text file. Use Notepad rather than WordPad, to avoid any unneeded extra characters.

  2. Name the file IMletDemo.java and Save. Set the file aside for now.

Oracle Java Me Sdk 3.4 Download Free

Example 4-1 Code for the Sample IMletDemo.java Project in NetBeans

Creating a New Oracle Java ME SDK Project in Eclipse

Follow the steps below to create a new Oracle Java ME SDK project in the Eclipse IDE:

  1. Choose the File >New >Project > Java ME > Midlet Project menu item and click Next.

  2. When the Create a MIDlet Project window appears, enter a Project Name (for example, IMletDemo).

  3. To the right of the Configurations window, press the Add... button to add a configuration. This displays the Add Configuration dialog box, with no configurations.

  4. In the Add Configuration dialog box, select 'Oracle Java(TM) Platform Micro Edition SDK 3.4' from the drop-down menu in the SDK field. In the Device field, select 'IMPNGDevice1.'

  5. Press Finish. This displays the New MIDlet Project window again, with IMPNGDevice1 selected as the Active Configuration.

  6. Press Next. This displays the MIDlet Project Content dialog box, as shown in Figure 4-6.

    The MIDlet Project Content dialog box allows you to create an Application Descriptor for your new project.

  7. In the MIDlet Project Content dialog box, set the following fields as shown here:

    • Microedition Configuration: Connected Limited Device Configuration (1.1)

    • Microedition Profile: Information Module Profile (NG)

    Figure 4-6 Creating A New Application Descriptor


    Description of 'Figure 4-6 Creating A New Application Descriptor'
  8. Press Finish to create the new IMletDemo project.

    Your new Eclipse project is ready to be run, as shown in Figure 4-7.

    Figure 4-7 The New IMletDemo Project Overview


    Description of 'Figure 4-7 The New IMletDemo Project Overview'

Configuring the Application Descriptor

See Full List On Oracle.com

With the IMletDemo project displayed in the Overview window of the Eclipse workscreen, do the following:

  1. Click the Application Descriptor tab to display the contents of the Application Descriptor.

  2. Change the MicroEdition-Profile property to IMP-NG, as shown in Figure 4-8.

    Figure 4-8 Configuring the Application Descriptor


    Description of 'Figure 4-8 Configuring the Application Descriptor'
  3. Click the Application Descriptor in the Pack window, as shown in Figure 4-9.

  4. Press Control-S to save your changes.

    Figure 4-9 Saving Changes to the Application Descriptor


    Description of 'Figure 4-9 Saving Changes to the Application Descriptor'

Adding a Test MIDlet to the Project

Adding a Test MIDlet to Eclipse allows to you set up sample code, from which you can easily launch your own project. To add a test MIDlet to Eclipse:

  1. Select File > New > Java ME MIDlet.

  2. Enter the name and optional package of the MIDlet, as shown in Figure 4-10.

    Figure 4-10 Creating a New Java MIDlet


    Description of 'Figure 4-10 Creating a New Java MIDlet'
  3. Press Finish. This creates the IMletDemo test MIDlet and displays Eclipse default code, as shown in Figure 4-11.

    Figure 4-11 Displaying the IMletDemo Test MIDlet Sample Code


    Description of 'Figure 4-11 Displaying the IMletDemo Test MIDlet Sample Code'

Adding Sample Code to a New Project

You have just created a new Oracle Java ME Embedded project as a test MIDlet in Eclipse. At this point, you can use the skeleton code provided in 'Creating a Sample IMlet File' to start building an embedded project.

  1. Select and delete the default code displayed in your new Eclipse project window.

  2. Copy and paste the sample code you created in 'Creating a Sample IMlet File' into the Eclipse project window.

  3. Select IMletDemo.java in the Package Explorer window.

  4. Press Control-S to save the new IMletDemo.java code in the Eclipse workscreen.

Figure 4-12 shows the Eclipse IDE window with the new project sample code incorporated.

Figure 4-12 The IMletDemo Sample Project Code


Description of 'Figure 4-12 The IMletDemo Sample Project Code'

Running the IMletDemo Sample Project

To run the IMletDemo sample code:

  1. With IMletDemo.java selected, press Control-F11.

    This runs the sample code and launches the IMPNGDevice1 emulator, with the IMletDemo MIDlet Suite running, as shown in Figure 4-13.

For more information on working with the Oracle Java ME SDK emulator, see Chapter 3.

Figure 4-13 The IMPNGDevice1 Emulator with the IMLetDemo Running


Description of 'Figure 4-13 The IMPNGDevice1 Emulator with the IMLetDemo Running'