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 .bat file.
set CLASSPATH=%GENDIR%/java/thirdParty/commons-codec-1.3.jar
set CLASSPATH=%CLASSPATH%;%GENDIR%/java/thirdParty/commons-httpclient-3.1.jar
set CLASSPATH=%CLASSPATH%;%GENDIR%/java/thirdParty/commons-logging-1.1.1.jar
set CLASSPATH=%CLASSPATH%;%GENDIR%/java/thirdParty/lawson-httpclient.jar
set CLASSPATH=%CLASSPATH%;.
java -cp %CLASSPATH% com.lawson.security.authen.httpclient.LawsonHCExample %*