Hi,
I am trying to compile a class in a sample
struts application I have deployed on Tomcat5.5.
I am trying to set the classpath to all the jars required for my action class in the lib folder.
The path to the lib foler is c:\Apache Software Foundation\Tomcat 5.5\webapps\Struts2InAction\WEB-INF\lib\
I set the classpath to one of my jars as follows:
set CLASSPATH=.;c:\Apache Software Foundation\Tomcat 5.5\webapps\Struts2InAction\WEB-INF\lib\struts2-core-2.0.11.jar
I tried to compile one of my action class after doing this and the number of errors went down.
There are several jars in the lib folder.
I want to set my classpath to point to all these jars.
There are too many jars. In total there are 42jars.
So do I have to keep appending the entire path to the jar file followed by the jar for 42 times.
e.g.
set CLASSPATH=.;c:\Apache Software Foundation\Tomcat 5.5\webapps\Struts2InAction\WEB-INF\lib\struts2-core-2.0.11.jar;c:\Apache Software Foundation\Tomcat 5.5\webapps\Struts2InAction\WEB-INF\lib\xwork-2.0.4.jar and so on for 42 times.
Is there a simpler way to do this? All the jars are in the same location.