File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes autoexec.bat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "autoexec.bat" Watch "autoexec.bat" New topic
Author

autoexec.bat

jesse jay
Greenhorn

Joined: Sep 23, 2000
Posts: 11
I am trying to get the jswdk to work on my win98 box. When I try to compile servlets the compiler tells me it can't find the classes it needs. I have modifien my autoexec.bat file to include
set CLASSPATH=.;C:\jswdk-1.0.1\lib\servlet.jar;C:\jswdk-1.0.1\lib\jspengine.jar %CLASSPATH%
as the last line in the file
I have also modified startserver for JAVA_HOME
where exactly in the autoexec file should this statement be?
could anyone send me their autoexec file as a guide to set up mine?
any help appreciated
jesse
jessejay@email.msn.com
Greg Glassman
Greenhorn

Joined: Oct 18, 2000
Posts: 2
The first one is the autoexec.bat modification. Copy the second one into your "startserver.bat" file when editing. If you are using the JDK 1.2X then modify accordingly.
I had a rough few days trying to get it to work. The reason I am showing the "startserver.bat" modification is due to the amount of time I wasted trying to mull over the classpath setting when it was the batch file that needed attention.
Good luck, and if you need further help, let me know:
gdglassman@yahoo.com

SET CLASSPATH=.;C:\jswdk-1.0.1\lib\servlet.jar;C:\jswdk-1.0.1\lib\jspengine.jar;C:\jdk1.3\lib\tools.jar

start c:\jdk1.3\bin\java.exe com.sun.web.shell.Startup %1 %2 %3 %4 %5 %6 %7 %8 %9
remjava com.sun.web.shell.Startup %1 %2 %3 %4 %5 %6 %7 %8 %9


Greg D. Glassman<BR>gdglassman@yahoo.com
Sarada Bhasker
Ranch Hand

Joined: Sep 11, 2000
Posts: 94
Thanks Greg. This post was very useful for me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: autoexec.bat