There are no hardware limitations for installing and running Oracle Java ME SDK as long as all software requirements are met.
The following table lists the software requirements for installing Oracle Java ME SDK 8.3.
Table 2-1 Software Requirements for Oracle Java ME SDK 8.3
Component | Requirement |
---|---|
Operating System |
Microsoft Windows 7 or Windows 10 64-bit Linux/x86, for example Ubuntu 15.10 Unity 64 bit |
Java Platform |
Java Platform, Standard Edition (Java SE) Development Kit version 8 with the latest updates |
Integrated Development Environment |
|
It is possible to run several instances of Java ME SDK, but you may want to remove previous versions when installing a new one.
Tip:
Before removing Java ME SDK, copy any related data that you want to save to a separate folder.
The Java Platform, Standard Edition (Java SE) Development Kit (JDK) includes a complete Java Runtime Environment (JRE) and tools for developing, debugging, and monitoring Java applications. As an implementation of the Java SE platform, the JDK is required for alignment of Java ME Embedded features and APIs through a unified development model.
Oracle Java ME SDK 8.3 requires JDK 8 with the latest updates.
To install the JDK:
For information about installing the JDK, refer to the Java Platform, Standard Edition Installation Guide at
http://docs.oracle.com/javase/8/docs/technotes/guides/install
The base Oracle Java ME SDK 8.3 package includes a set of tools for developing Java ME Embedded applications, and the Java ME Embedded 8.3 runtime as a device emulation environment for Windows and Linux.
Tip:
Before installingOracle Java ME SDK 8.3, you may want to remove any previous versions. For more information about removing previous versions of Java ME SDK, see Removing Previous Versions of Java ME SDK.
Because Oracle Java ME runtime is a 32-bit application that cannot be easily ported to a 64-bit architecture, you need to manually install 32-bit support libraries on a 64-bit Linux machine for starting Java ME SDK.
E.g., to install 32-bit support libraries on Ubuntu 15.10, perform the following commands:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
If you want to work with UART using Device I/O APIs, with COM ports via Generic Connection framework, or connect boards to Java ME SDK via USB/COM interface, you need to run Java ME SDK under the user that has permissions to access serial ports.
To grant the user access to serial ports, add the user to the corresponding group (e.g., on Ubuntu 15.10, add the user to dialout group.)
NetBeans IDE is a free and open source integrated development environment (IDE) that facilitates the development of Java applications. Oracle Java ME SDK plug-ins for NetBeans IDE enable all features to be used from within the IDE.
NetBeans IDE 8.1 or later is required if you want to use the Oracle Java ME SDK plug-ins.
To install NetBeans IDE 8.1:
After you install NetBeans IDE, start it and check for updates. If updates are available, a corresponding indicator will be available in the status bar at the bottom right of the main window. To start the check manually, open the Help menu and select Check for Updates.
For detailed information about installing NetBeans IDE, refer to the installation instructions page at
Plug-ins for NetBeans IDE enable all features of Oracle Java ME SDK to be used from within the IDE.
Oracle Java ME SDK 8.3 provides the following plug-ins for working with NetBeans IDE 8.1:
Java ME SDK Tools: Integrates the Oracle Java ME SDK tools into the IDE.
Java ME SDK Demos: Provides demo Java ME Embedded applications.
The Oracle Java ME SDK plug-ins for NetBeans IDE are distributed as NetBeans module (NBM) files in a ZIP archive. The NBM files are recognized by the NetBeans Plugin Manager. You can configure the Plugin Manager to automatically install the plug-ins by pointing it to the updates.xml
file that is available in the archive.
To install the Oracle Java ME SDK plug-ins for NetBeans IDE:
Download the ZIP archive with the Java ME SDK plug-ins at
http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk
Note:
You must accept the Oracle Technology Network (OTN) License Agreement to download this software.
Extract the ZIP archive with the plug-ins to a directory on your computer.
Start NetBeans IDE, open the Tools menu, and select Plugins.
If you have a previous version of the Java ME SDK plug-ins installed, remove them as follows:
On the Installed tab, select Show Details (if available), then select Java ME SDK Tools and Java ME SDK Demos in the list, and click Uninstall.
Follow the steps in the NetBeans IDE Installer Wizard. On the last step of the wizard, select to restart NetBeans IDE now, and click Finish.
When NetBeans IDE restarts, open the Tools menu, select Plugins, and add an update center for Java ME SDK plug-ins as follows:
On the Settings tab, click Add.
In the Name field, enter Java ME SDK Plug-ins Update Center
.
Select Check for updates automatically.
In the URL field, use the file
uniform resource locator (URL) scheme to point to the location where you extracted the Java ME SDK plug-ins, for example:
file:///C:/My_Update_Center_Plugins/updates.xml
Click OK.
Ensure that the Java ME SDK Plug-ins Update Center is active by selecting the corresponding check box in the list on the Settings tab.
Install the Java ME SDK plug-ins as follows:
On the Available Plugins tab, select Java ME SDK Tools and Java ME SDK Demos in the list, and click Install. The two plug-ins are in the Java ME SDK Tools category.
Follow the steps in the NetBeans IDE Installer Wizard. On the last step of the wizard, select to restart NetBeans IDE now, and click Finish.
Note:
If the Java ME SDK plug-ins are not in the list on the Available Plugins tab, it is likely that you specified the wrong URL to the updates.xml
file in the update center.
If you are not able to get the Plugins Manager to recognize the Java ME SDK plug-ins, install them manually. To install the plug-ins manually:
On the Downloaded tab, click Add Plugins.
Browse to the directory where you extracted the archive with the Java ME SDK plug-ins, select all NBM files and click Open.
Follow the steps of the NetBeans IDE Installer Wizard. On the last step of the wizard, select to restart NetBeans IDE now, and click Finish.
When NetBeans IDE restarts, open the Tools menu, select Plugins, and verify that the Java ME SDK plug-ins are active as follows:
On the Installed tab, select Show Details (if available), then find the Java ME SDK Tools and Java ME SDK Demos plug-ins in the list. If they are not active, then select them and click Activate.
When the Java ME SDK plug-ins are active, click Close to close the Plugins window.
If the plug-ins were installed successfully, the Java ME SDK Start Page tab should be open in NetBeans IDE. To view this tab, select Java ME SDK Start Page on the Help menu.
Eclipse IDE is a free and open source integrated development environment (IDE) that facilitates the development of Java applications. Oracle Java ME SDK plug-ins for Eclipse IDE enable all features to be used from within the IDE.
Eclipse IDE 4.5 or later is required if you want to use the Oracle Java ME SDK plug-ins.
To install Eclipse IDE 4.5:
For detailed information about installing Eclipse IDE, refer to the installation instructions page at
Plug-ins for Eclipse IDE enable all features of Oracle Java ME SDK to be used from within the IDE.
Oracle Java ME SDK 8.3 provides the following plug-ins for working with Eclipse IDE 4.5:
Java ME SDK Tools: Integrates the Oracle Java ME SDK tools into the IDE.
Java ME SDK Demos: Provides demo Java ME Embedded applications.
Note that to use the Java ME SDK plug-ins, you must run Eclipse IDE on top on GTK2 rather than the default GTK3.
The Java ME SDK plug-ins are distributed as JAR files archived inside a ZIP file. The JAR files contain platform extensions for Eclipse IDE that are recognized by the Install New Software Wizard.
In order to install the Java ME SDK plug-ins, you need the Mobile Tools for Java (MTJ) extensions. They are also distributed as JAR files, but in a separate ZIP file. When you install the Java ME SDK plug-ins, MTJ extensions should install automatically. However, you can download and install them separately. For more information, see Installing Mobile Tools for Java Extensions.
To install the Java ME SDK plug-ins for Eclipse IDE:
Download the ZIP files with the Java ME SDK plug-ins from
http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk
Note:
You must accept the Oracle Technology Network (OTN) License Agreement to download this software.
Start Eclipse IDE and uninstall the previous versions of Java ME SDK plug-ins as follows:
Open the Help menu and click Installation Details.
On the Installed Software tab, select Java ME SDK Tools, and Java ME SDK Demos in the list, and click Uninstall.
On the Uninstall Details window, click Finish.
When prompted, click Yes to restart Eclipse IDE.
Install the Java ME SDK plug-ins as follows:
Open the Help menu and select Install New Software.
At the top of the Available Software window, click Add.
In the Add Repository dialog, click Archive.
In the file-system explorer window, browse to the ZIP file with the Java ME SDK plug-ins and click Open.
In the Add Repository dialog, click OK.
On the Available Software window, select Java ME SDK Tools and Java ME SDK Demos in the list, and click Next.
On the Install Details window, click Next.
Accept the terms of the license agreement and click Finish.
When the installation process completes, restart Eclipse IDE.
When you start Eclipse IDE, to develop Java ME Embedded applications, activate the Java ME perspective as follows:
Open the Window menu, select Perspective, select Open Perspective, then Other.
In the Open Perspective window, select Java ME and click OK.
To use the Java ME SDK plug-ins for Eclipse IDE on Linux platform, you must install the WebKit engine for GTK+. The version of the WebKit must be compatible with the GTK+ library used to render Eclipse IDE.
E.g., on Ubuntu 15.10, download WebKit 1.0-0 and perform the following command:
sudo apt-get install libwebkitgtk-1.0-0
Note that only Eclipse rendered by GTK2 is currently supported. To enable running Eclipse IDE on top of GTK2, set the SWT_GTK3 environment variable to 0.
E.g., on Ubuntu 15.10, use the following command:
export SWT_GTK3=0
When you install the Java ME SDK plug-ins, Mobile Tools for Java (MTJ) extensions should install automatically. However, you can download and install them separately as follows:
Download the ZIP file with the MTJ 2.0.1 extensions from
Start Eclipse IDE and uninstall the previous versions of MTJ extensions as follows:
Open the Help menu and click Installation Details.
On the Installed Software tab, select Mobile Tools for Java, and click Uninstall.
On the Uninstall Details window, click Finish.
When prompted, click Yes to restart Eclipse IDE.
Install the MTJ plug-ins as follows:
Open the Help menu and select Install New Software.
At the top of the Available Software window, click Add.
In the Add Repository dialog, click Archive.
In the file-system explorer window, browse to the ZIP file with the MTJ plug-ins and click Open.
In the Add Repository dialog, click OK.
On the Available Software window, select Mobile Tools for Java in the list, and click Next.
On the Install Details window, click Next.
Accept the terms of the license agreement and click Finish.
When the installation process completes, restart Eclipse IDE.
Oracle Java ME SDK supports JSR 177 Security and Trust Services APIs. If you want to work with the APDU emulation, you must download and install JavaCard SDK 2.2.1 from
http://www.oracle.com/technetwork/java/embedded/javacard/downloads/index.html
You need only JavaCard emulator (cref.exe
) to enable APDU emulation in Java ME SDK 8.3.
Oracle Java ME SDK is constantly being developed. New releases may include new features, support for new APIs, fixes of known issues, and so on. You should always use the latest available version of Oracle Java ME SDK.
For minor releases, it is possible to update your instance of Oracle Java ME SDK. However, in case of a major release, you have to install the new version of Oracle Java ME SDK.
The Java ME SDK Update Center provides notifications when updates to the core Oracle Java ME SDK components, tools, or the Java ME Embedded runtime become available. This ensures that developers are working with the latest version of Oracle Java ME SDK.
The Java ME SDK Update Center is a standalone tool, but it can also be started from the NetBeans IDE or Eclipse IDE if you have the Java ME SDK plug-ins installed.
To start the standalone Java ME SDK Update Center:
Launch update-center.exe
for Windows (update-center
for Linux) under bin
in the Oracle Java ME SDK installation directory.
To start the Java ME SDK Update Center from NetBeans IDE:
Open the Tools menu, select Java ME, and then Java ME SDK Update Center.
To start the Java ME SDK Update Center from Eclipse IDE, you need to be in a Java ME Perspective.
Open the Help menu and select Java ME SDK Update Center.
The Java ME SDK Update Center window is separated into the following tabs:
Available: Contains a list of Java ME SDK packages available on the update server that you can install.
Installed: Contains a list of installed Java ME SDK packages that you can uninstall.
Updates: Contains a list of installed Java ME SDK packages for which updates are available on the update server.
Settings: Contains a list of update servers that you can customize.
Note:
You cannot remove or edit the default Java ME SDK Update Server.