This document guides you through the installation of the environment needed to work with StrutsME .
WTK_HOME. Set the systemenvironmentvariable
WTK_HOMEto the installationdirectory of the WTK.
For the deployment of a J2ME-Midlet a Obfuscator is needed. In StrutsME we use proguard for that task. If you want to use another obfuscator, you have to modify the build.xml files of the modules.
PROGUARD_HOMEto the installationdirectory.
Maven is not really neccassary, but it would make the handling easier. For the future, it is planned to base the whole developmentcycle of StrutsME on maven. At now, StrutsME uses an elder version of maven, namely 1.02.
MAVEN_HOMEto the installationdirectory.
The antversion needed to execute the buildfile is 1.6 or higher. The buildfiles are tested against 1.6.5.
ANT_HOME. Also you will have to set a variable called
MOBILE_REPOSITORY, which is used in the buildfiles. The directory this variable points too is used as common repository for the ant-buildfiles. If you point this variable to the root of the local Mavenrepository, you can use the deployed jars also in maven. This means, you can refer to them in the project.xml of a mavenproject with the groupid
To perform the antbuilds, the ant-plugin antenna is needed. Please download the jar, copy it to the
WTK_HOME/lib directory and rename it too
For developers and committers only. StrutsME
is using checkstyle for checking the code. The
resources\buildresources directory of the CommonModule contains a checkstyle-configurationfile.
The developers of this framework uses Eclipse as the Ide of their choice. If you prefer another Ide like Idea or Netbeans, you will have to translate the following steps.
You can skip reading this section if you are generating your classpath via the
maven eclipse:generate-classpath command.
Select 'Window - Preferences' and then select 'Java - Java-Buildpath - User Libraries'. Press the button 'New' to create new Userlibraries. You can find the jars for the libraries in the
WTK\_HOME.lib-directory. For example see table 1. The javadoc for these jars are found in the
|MobilePlatform 1.0||cldcapi1.0.jar, midpapi1.0.jar|
|MobilePlatform 1.1||cldcapi1.1.jar, midpapi1.0.jar|
|MobilePlatform 2.0||cldcapi1.1.jar, midpapi2.0.jar|
Table 2shows a overview of the required Systemenvironmentvariables.
|WTK_HOME||installationdirectory of the Wireless Toolkit|
|PROGUARD_HOME||installationdirectory of Proguard|
|MOBILE_REPOSITORY||locale directory, which is used during the buildprocess with ant.|
|ANT_HOME||home of ant|
|MAVEN_HOME||home of maven|