Building the Java samples
Learn how to build the Java™ samples.
Procedure
- Configure your environment for Java:
-
Set your JAVA_HOME environment variable and the Java
bin directory:
- Set your JAVA_HOME environment variable to point to the directory in which the JDK is located.
For example, if your JDK is set to /opt/java/j2sdk1.4.2, set JAVA_HOME to this path.
- Ensure your Java bin directory is included in your Path environment variable.
- Set your JAVA_HOME environment variable to point to the directory in which the JDK is located.
-
If you are planning on using Ant to build the samples, set your ANT_HOME environment variable and Ant bin directory.
- Set your ANT_HOME to point to the directory in which you have installed Ant.
- Ensure your Ant bin directory is included in your Path environment variable.
-
Set your JAVA_HOME environment variable and the Java
bin directory:
- Build the Java sample client:
- Change to the conf directory under the directory in which you installed the IBM® Spectrum Symphony SDK.
- Set the environment:
- For csh, enter:
source $SOAM_HOME/conf/cshrc.soam
- For bash, enter:
. $SOAM_HOME/conf/profile.soam
- For csh, enter:
- Compile with the Makefile or with the Ant build file.
- Compile with the Makefile: Change to the $SOAM_HOME/7.3.2/samples/Java/SampleApp directory and run the command:
make
-
Compile with the Ant build file:
Change to the $SOAM_HOME/7.3.2/samples/Java/SampleApp directory and run the command:ant
- Compile with the Makefile: