Space Siege Breakers is a Java ME based tower defense type mobile phone game created as a homework for a course in 2010.
- Linux or Windows
- Java Development Kit 7 (32-bit), JDK 8 and newer cannot seem to produce functioning MIDlet jars; WTK requires a 32-bit JDK to launch device emulators
- Sun Wireless Toolkit 2.5.2_01 for CLDC, Java ME SDK 3.4, or any release in between
- Eclipse Oxygen 3a (4.7.3a) with Mobile Tools for Java plugin
- Ant 1.9.x with Antenna for CLI builds
- Install the dependencies
- Set up the required environment variables (
JAVA_HOME
,WTK_HOME
andANT_HOME
) have been set up the following way:- Make sure that
JAVA_HOME
is pointing to a 32-bit JDK <= 7 and that theJAVA_HOME/bin
has been added to thePATH
- Make sure that
WTK_HOME
has been set and points to either to the WTK or a Java ME SDK root - Make sure that
ANT_HOME
has been set andANT_HOME/bin
has been added to thePATH
, also make sure that Antenna's jar has been added toANT_HOME/lib
- Make sure that
git clone git@github.com:laszlolukacs/spacesiegebreakers.git
ant build
After a successful build the artifacts (the JAD and JAR files) will be located in the /bld
directory.
- Install the dependencies (Ant and Antenna could be omitted)
- Set up Eclipse and MTJ
- Add a 32-bit JDK <= 7 to Eclipse using 'Window/Preferences' then 'Java/JREs'
- Select 'Window/Preferences' then 'Java ME' and point the 'WTK root' attribute to the WTK/Java ME SDK root directory
- Add the emulators at 'Window/Preferences' then 'Java ME/Device Management', then hit 'Manual Install...' and select either the WTK or a Java ME SDK root directory and add the emulators
git clone git@github.com:laszlolukacs/spacesiegebreakers.git
- In Eclipse use 'File/Import...', then select 'General/Existing Projects into Workspace' to open the project in Eclipse.
When the MIDlet packages have been created the artifacts (the JAD and JAR files) will be located in the /deployed/<TargetDeviceName>
directory.
Copy the resulting SpaceSiegeBreakers.jad
and SpaceSiegeBreakers.jar
artifacts either from the /bld
(when built with Ant) or from the /deployed/<TargetDeviceName>
(when MIDlet packages are created from Eclipse) directory to the target device.