File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "autoexec.bat" Watch "autoexec.bat" New topic


jesse jay

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
Greg Glassman

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:

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 %1 %2 %3 %4 %5 %6 %7 %8 %9
remjava %1 %2 %3 %4 %5 %6 %7 %8 %9

Greg D. Glassman<BR>
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:
subject: autoexec.bat
It's not a secret anymore!