This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
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.
Consider Paul's rocket mass heater.
subject: autoexec.bat
Similar Threads
import javax.servlet.*;
tomcat installation problem
Will not compile with javax.servlet.jsp
problem with TomCat and jswdk-1.0.1
compiling and running jsp prog