Wednesday, November 28, 2007

Run java class in jar file without manifest file

1. Write class and compile.
2. jar it to testspring.jar (without manifest file)
3. put it under home folder of AS400 IFS.
4. Run this AS400 command. Note other jar files used is in /mrcwebgui/WEB-INF/lib folder so we used java.ext.dirs property.

JAVA CLASS(test.testspring) CLASSPATH('/home/testspring.jar') PROP((java.ext.dirs '/mrcwebgui/WEB-INF/lib'))

Or you can put testspring.jar in /mrcwebgui/WEB-INF/lib. Then you only need to run this command:

JAVA CLASS(test.testspring) PROP((java.ext.dirs '/mrcwebgui/WEB-INF/lib'))


Post a Comment

<< Home