Running Your Application
To run your application that calls the lawson-httpclient.jar APIs, you must set the classpath to include several jar files in addition to the lawson-httpclient.jar. The jar files to include are:
-
$GENDIR/java/thirdParty/commons-codec-1.3.jar
-
$GENDIR/java/thirdParty/commons-httpclient-3.1.jar
-
$GENDIR/java/thirdParty/commons-logging-1.1.1.jar
-
$GENDIR/java/thirdParty/lawson-httpclient.jar
You can set the classpath and run your program through a .sh file.
#!/bin/sh
CLASSPATH=$GENDIR/java/thirdParty/commons-httpclient-3.1.jar
CLASSPATH=$CLASSPATH:$GENDIR/java/thirdParty/commons-logging-1.1.1.jar
CLASSPATH=$CLASSPATH:$GENDIR/java/thirdParty/commons-codec-1.3.jar
CLASSPATH=$CLASSPATH:$GENDIR/java/thirdParty/lawson-httpclient.jar
CLASSPATH=$CLASSPATH:.
java -cp $CLASSPATH -Djava.ext.dirs=$GENDIR/java/ext:$GENDIR/java/impl:$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/ext -Xmx384m com.lawson.lawsec.authen.httpconnection.LHCTest $@