Building Java me under linux

Environment Setup

 * Download and install full version of Netbeans for Linux https://netbeans.org/downloads/index.html
 * Download and install Sun Wireless Tool Kit http://www.oracle.com/technetwork/java/download-135801.html
 * Run Netbeans
 * Select Tools > Java Platforms > Add Platform
 * In the Select Platform Type of the Add Java Platform wizard, select Java ME CLDC Platform Emulator and click Next.
 * Select directory where Sun Wireless Tool Kit

If your are using Linux x64 the following instruction also should be done https://forums.oracle.com/thread/1746329.

Building

 * Create new project: Create new Project > JavaME > Class library
 * Check CLDC 1.1 and MIDP-2.1
 * Copy all sources from jgeo2me (https://github.com/geo2tag/jgeo2me) EXCEPT src/ru/spb/osll/tests/ to newly created project src/ directory

Gui build:


 * Press Build button

Command line:


 * ant jar-all

Jar and Jad files will appear in dist/ directory