Oracle Launches Oracle Java ME Embedded 3.2 and Updates Oracle Java Wireless Client and Oracle Java ME Software Development Kit. Oracle today announced a new product in its Java Platform, Micro Edition (Java ME) product portfolio, Oracle Java ME Embedded 3.2, a complete client Java runtime optimized for microcontrollers and other resource-constrained devices. Download Java ME Platform SDK 3.0.5. Double-click the executable file to start the installation, and follow the prompts. As the installation concludes, the Device Manager appears in the Windows system tray. Oracle java me sdk 3.4 download WARNING - Older versions of the Java ME SDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production.
Hi, Sorry for the late answer. Java ME SDK 3.2 is needed to build Eclipse PAHO MQTT library (org.eclipse.paho.mqtt.java.git - MQTT Client Package - Java Language).From the README file: Paho Java ME client for MQTT. We're developing for a Java ME 3.2 device that will not be 3.3 or 3.4 in near future. There are two SDKs versions, but I didn't see if using 3.3/3.4 SDK I can generate code to run in 3.2.
Mobile embedded applications are employed in small embedded devices such as industrial metering devices, vending machines, security systems, modems, home electronics devices, and similar devices with either simple or no display and with some limited network connectivity. This example shows you how to develop a new Java ME embedded project in the NetBeans IDE using the Oracle Java Micro Edition Embedded platform that includes support for JSR 228, the Information Module Profile-Next Generation API (IMP-NG). It will also explain how to debug and profile your own IMlet using NetBeans support for Oracle Java ME Embedded.
Contents
To complete this tutorial, you need the following software and resources:
Software or Resource | Version Required |
---|---|
NetBeans IDE with Java ME | Version 7.3 and more recent |
Java Development Kit (JDK) | Version 6, 7, or 8 |
Java ME SDK | Version 3.2 and more recent |
Important: This tutorial runs on Win32 compatible platforms only.
Installing Oracle Java ME Embedded
To set up the NetBeans IDE with the Oracle Java ME Embedded software for the Windows platform, you need to:
- install Oracle Java ME SDK
- activate the Java ME feature in the NetBeans IDE
- install the Oracle Java ME Embedded platform in the NetBeans IDE
To install Oracle Java ME SDK:
- Go to the Java ME SDK download page.
- Click the Accept License Agreement option.
- Download an Oracle Java ME SDK installer file (for example, oracle-jmesdk-3-4-rr-win32-bin.exe) and save it to any location on your computer.
- Double-click the installer file to run the installer, and follow the instructions.
When the installation is complete, the Java (TM) ME Platform SDK Device Manager icon ( ) appears in the Windows system tray.
To activate the Java ME feature:
- Choose Tools > Plugins from the main IDE's toolbar.
- In the Plugins dialog box, click the Installed tab and select Java ME in the list of available features.
- Click Activate.
- At the Welcome panel of the Installer dialog box, click Activate.
- When the activation is successfully completed, click Finish.
- Click Close to close the Plugins dialog box.
To install the Oracle Java ME Embedded platform:
- Choose Tools > Java Platforms.
The Java Platform Manager dialog box displays. - Click Add Platform.
- In the Select Platform Type of the Add Java Platform wizard, select Java ME CLDC Platform Emulator and click Next.
The IDE displays the Choose directory to search for platforms dialog box. - Select the directory you installed the Java ME SDK Platform to (for example, C:Java_ME_Platform_SDK_3.2) and click Open.
- In the Platform Folders panel of the Add Java Platform wizard, ensure the platform you selected in the previous step is chosen and click Next.
- As soon as the IDE detects the platform, click Finish in the Detected Platforms panel of the the Add Java Platform wizard. The Oracle Java ME Platform is now registered in the Netbeans IDE.
- In the Java Platform Manager dialog box, click Close.
Now your NetBeans IDE is set up for mobile development.
Creating an Embedded Project
Creating a new project is your first step in developing a new Java ME Embedded application with the NetBeans IDE.
- Choose File > New Project.
The New Project dialog box displays. - Select the Java ME category and the Embedded Application project. Click Next.
- In the Name and Location panel of the New Embedded Application wizard, specify EmbeddedApp as the project name.
- Leave the Create Default Package and IMlet Class option selected and click Next.
- Make sure CLDC Oracle Java(TM) Platform Micro Edition SDK is selected as the emulator platform and IMPNGPhone1 is selected as the device.
- Click Finish.
An IMP-NG application with an IMLet is created in a standard IDE project.
Running the Application
To verify whether the application runs properly, modify the application source code as follows:
- In the Projects window, double-click the IMlet.java file and choose Edit.
The IDE opens the IMlet.java file in the Source Editor. - Scroll through the source code and find the StartApp method.
- Insert the following line in bold in the StartApp method's body:
- Choose File > Save from the IDE's main menu to save the edits.
Now that you have created the application, you can run the application in the IDE as described below:
- Right-click the EmbeddedApp project node and choose Clean and Build.
The Output window displays the BUILD SUCCESSFUL statement.Note: Choose Window > Output > Output from the the IDE's main menu if the Output window is not visible. - From the IDE's menu bar, choose Run > Run Project.
The IMPNGPhone1 emulator starts and displays the EmbeddedApp application running.Note: More information on the Java ME Embedded Emulator is available in the Oracle Java ME Embedded Getting Started Guide for the Windows 32 Platform.In the Output window, you should see the output from the program,Hello, world!
- In the emulator, select Embedded App (running) and click Suspend on the right.
The application is paused. - Click Resume.
The application resumes running. - To stop the application and close the emulator, click Stop and choose Application > Exit from the emulator's menu.
The run process is terminated in the IDE.
Debugging the Application
Debugging embedded projects is accomplished similarly to debugging general Java projects.
Right-click on the project, and choose Debug to start a debugging session. The emulator opens and the program execution stops at any set breakpoints.
Profiling the Application
Use common profiling tasks, such as standard CPU or memory profiling, to build a reliable mobile embedded application.
Before profiling your application, you need to install the Java ME SDK Tools plugin as follows:
If you're using BX cable, the armored jacket works as a ground when it's clamped to the junction box.
If you have Romex (plastic-sheathed) cable, connect the green ground wire to the dishwasher's green or bare-copper wire with a wire nut.
- In the NetBeans IDE, choose Tools > Plugins.
- In the Plugins Manager, select the Available Plugins tab.
- In the Available Plugins tab, scroll to find the Java ME SDK Tools plugin and select it for installation.
- Click Install.
- At the Welcome page of the Installer dialog box, click Next.
- At the License Agreement page, read the license agreements associated with the plugin. If you agree to the terms of all of the license agreements, click the appropriate option and then click Install.
- When the installation process is complete, leave the Restart IDE now option selected and click Finish.
After NetBeans IDE restarts, you can start using the IDE to profile your mobile embedded application.
Oracle Java Me Sdk 3.4 Download
- In the Projects tab of the IDE, select the
EmbeddedApp
project name. - Choose Profile > Profile Project from the main menu to start a profiling session. Note: You are prompted to integrate the profiler when a project is going to be profiled for the first time.
- (Applicable if this is first-time profiling of the project) In the Enable Profiling dialog box, click Yes to perform the integration.
- In the Profile dialog box, choose CPU Profiler, and optionally check Profile System Classes.
- Click Run.
The emulator opens with theEmbeddedApp
application running. - Interact with the application.
- Exit the application or close the emulator.
The IDE displays the profile data in thecpu:time
window.Note: To save the data collected during the emulation session for future reference you can either:- export the data to a
nps
file by clicking the Export to button () - save a snapshot to a
png
file by clicking the Save Current View to Image button ()
- export the data to a
See Also
- Developing Java ME Applications in Developing Applications with NetBeans IDE
Active4 years, 10 months ago
I have installed Netbeans 8.0 that comes with pre installed Java ME plugin. Now when I tried to create a new Java ME project it said
No Java ME Platform found. Please add at least one
Also, the field 'Java ME platform' was blank. So I clicked on
Manage platforms
and added Java ME CDLC Emulator Platform
and gave the path to JAVA ME SDK.It discovered the platform and added the devices. After doing this, the field 'Java ME platform' is still blank and I'm not able to select the Java Me platform.
Please help!
zlinks
85711 gold badge1414 silver badges2424 bronze badges
Archit AroraArchit Arora79555 gold badges1919 silver badges4242 bronze badges
2 Answers
Had the same problem during installation on a new PC.I'm developing for J2ME, CLDC 1.1, MIDP 2.1,but I just couldn't manage to add a platform that would allow me to compile and run my app on an emulator.
The PC is a 64-bit PC, and I'm using the SDK 3.4, which is 32 bitso finally I installed Virtual Box, Windows 7 32-bit as guest, and finally it worked- installed first java jdk-8u25-windows-i586- then netbeans 8 netbeans-8.0.1-windows- once netbeans installed, activated java me plug in, there was no need to install it, it's pre-installed- then java me sdk 3.4 oracle-jmesdk-3-4-rr-win32-bin- then in netbeans, tools - java platforms, add the platform java me 3.4 just installed
Now I can emulate my app again
user946565user946565
There are two kinds of projects available
Java ME embedded
and Java ME
. The Java ME CDLC Emulator Platform
is used for Java ME
projects.One thing you should check is the activation step as described here: https://netbeans.org/kb/73/javame/cdc-quickstart.html
For my case I had the EE version of Netbeans 8.0 so I wen to the start page then to plugins and downloaded everything that had to do with JME. I also had to download SDK
Java ME SDK 3.2
. I also downloaded the plugins for Netbeans (even though I did the plugin installation through the IDE)
Java ME SDK 3.2 Plugins for NetBeans
from: http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html. Then went to Tools->Plugins selected the Downloaded tab and finally Add PLugins ..UPDATE - Tried with NetBeans 8.0 All (contains JAVA ME)
Even after activating the plugins I still had to download
Java ME SDK 3.2 Plugins for NetBeans
. Only then the IDE is offering me Java ME when I click at new project.What I did:
1) Activate Java ME plugin, restart the IDE:
2) Install
Java ME SDK 3.2
3) Go to Tools add platform. Restart IDE just in case. Still offered only Java ME embedded as project:
4) Go to http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html and download the plugins for the Netbeans IDE. Unzip the file and install them (press ctrl-a to select all the nbm files and click open):
5) Click install. This will install everything needed and it will prompt you to restart the IDE:
6) Restart the IDE and there it is:
zlinkszlinks85711 gold badge1414 silver badges2424 bronze badges