Skip to content

Latest commit

 

History

History
 
 

medemo

Java ME Demo

Units of Measurement API Demo for Java ME 8 Embedded

Steps to Run

Eclipse

Follow Installing the Java ME SDK Plug-ins for Eclipse IDE to install the Eclipse plug-ins for Java ME 8.2 SDK. And all necessary prerequisites (e.g the Java ME SDK 8.2 itself if you haven't done so) The plug-ins require Eclipse Mars (4.5) or higher.

After installing the Eclipse plug-ins, start Eclipse with a new empty workspace.

If you haven't done so, clone

Import - Existing Maven Projects:

  • ${git_dir}/unit-api
  • ${git_dir}/unit-api

Import - Existing Projects into Workspace:

  • ${git_dir}/uom-demos/javame/medemo

You'll be promted to select an SDK and Device(s) SDK and Devices

Click "Manage Devices..." And in the Device Management dialog "Manual Install..."

Point to the installation folder of Java ME SDK 8.2, see: Manual Device Installation

After scanning the SDK folder, confirm with "Finish" and Device Management should look like this: SDK and Devices

Confirming Device Management will populate the SDK and Device dropdown. Defaults normally do, try "EmbeddedDevice1" if not selected. You may check "Remember this match" before confirming SDK and Device with OK.

In the "medemo" project double-click "Application Descriptor". From the "Running" panel on the right chose "Launch as Emulated Java ME MIDlet".

After a few moments the Medemo MIDlet should start and you'll see output like this in the Console:

Hello MEDemo

10 min
10 °C
10 m

(May change slightly as the demo evolves)

NetBeans

See Installing the Java ME SDK Plug-ins for NetBeans IDE for NetBeans support of the Java ME 8 SDK and any prerequisites.

NetBeans support for Java ME 8.2 SDK is currently picky about libraries it can use. Although libraries backed by JAR files should work, it currently won't load unless the classes are provided in an "exploded JAR" / "classes" folder.