Friday, July 29, 2005
Java compile classpath
The classpath should contain the jar file or the path to the class files, like this:
C:\VSS\PLTS\webapps\pltsweb\WEB-INF\classes>\Sun\AppServer\jdk\bin\javac.exe -classpath c:\sun\appserver\lib\j2ee.jar;c:\vss\plts\webapps\pltsweb\web-inf\classes\;c:\oracle\ora92\jdbc\lib\classes12.zip com\plts\servlets\PLTSMain.java
Here we need to specify full path to the j2ee.jar, classes12.zip in the classpath; also we need to specify the path to any other class files.
One thing to note, the java servlet class is packed in j2ee.jar. You have to install j2ee to get it work
C:\VSS\PLTS\webapps\pltsweb\WEB-INF\classes>\Sun\AppServer\jdk\bin\javac.exe -classpath c:\sun\appserver\lib\j2ee.jar;c:\vss\plts\webapps\pltsweb\web-inf\classes\;c:\oracle\ora92\jdbc\lib\classes12.zip com\plts\servlets\PLTSMain.java
Here we need to specify full path to the j2ee.jar, classes12.zip in the classpath; also we need to specify the path to any other class files.
One thing to note, the java servlet class is packed in j2ee.jar. You have to install j2ee to get it work