If you have just installed and setup your environment, please close your Ide and start it new. Otherwise the new systemenvironmentvariables are not known by your ide.
From the sourcerepository checkout the three Modules StrutsME-Common , StrutsME-Server and StrutsME-Client . The srcpath is located in src/java , the buildpath in target/classes . The access to the sourcerepository is described in http://sourceforge.net/cvs/?group_id=171962 .
If you like it, you can also checkout the three Modules StrutsME-Wishlist-Common , StrutsME-Wishlist-Client and StrutsME-Wishlist-Server of the SampleApplication. Adding all buildfiles in the Antview of Eclipse you will get a picture like this 1.
The dependency of these is
In this order, beginning with StrutsME-Common , compile and deploy the modules. This could be done by executing ant deploy in the root of the -Common and -Clientmodules, maven jar:deploy of StrutsME-Server and maven war or maven war:webapp of StrutsME-Wishlist-Server . In the case you use Eclipse, you could generate your projectsettings via maven eclipse or maven eclipse:generate-project and maven eclipse:generate-classpath in the rootdirectory of each module. There exists similiar targets for other Ides like Intelliji Idea.
The build.properties are used to configure the projectproperties for the Client- and Commonmodules. The following properties are required.
The name of the generated jar-file follows the pattern
If you want to debug the client, first you have to configure a RemoteDebugSession in your Ide. In the case of Eclipse this could be done by selecting
Java Remote Application and add a new launchconfiguration. Set the title of the new launchconfiguration and change the port to
7654. This is the defaultDebugport. Changing of this port is made by updating the
debug target in the build.xml. See also figure 2.
After the deployment of the serverapplication to and starting the webserver, the client could be started in the emulator of the WTK by executing the ant run or ant debug command. In the case you have started the emulator via the ant debug command, you have to establish the RemoteDebugSession from your Ide, when the emulator appears.
see also 2
This section describes the public targets defined in the buildfiles build.xml for ant. Referenced targets in the description, for example [build] in the [jar]-target, are targets the currently target depends on.
To build the server you have to perform the following steps.