• Post Reply Bookmark Topic Watch Topic
  • New Topic

setting path for jspengine.jar

 
Vanitha Sugumaran
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have installed Tomcat 4.0. (finally)!. I am following the book core servlets and Javaserver Pages book, the author is suggesting to identify the classes to the java compiler. So as he suggested I can find the 'servlet.jar' in the Tomcat directory.
But I am unable to find jspengine.jar in Tomcat directory. First of all do we have to do this to finish the installation?

So far this is what I have in my autoexe file
C:\ESSAUDIO.COM
SET Path=c:\Oracle\Ora81\bin;"C:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN";
SET JAVA_HOME=C:\jdk1.3
SET TOMCAT_HOME=C:\
SET PATH=%PATH%;C:\PROGRAM FILES\apache tomcat 4.0\bin
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\lib\tools.jar
SET CLASSPATH=C:\PROGRAM FILES\APACHE TOMCAT 4.0\COMMON\LIB\SERVLET.JAR;
I am new to all of this, please help me through this.
Thanks,
Vanitha.
Thanks to satya for the post regarding installation of tomcat.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With Tomcat 4.0, the variables you need to set are
JAVA_HOME=c:\jdk1.3.1
CATALINA_HOME=c:\progra~1\apache~1

Notice that for windows 9x, you need to use the ~ version (no spaces in the path!).

For compiling servlets, you need servlet.jar in the CLASSPATH, so you would append c:\progra~1\apache~1\common\lib\servlet.jar to your existing CLASSPATH statement in autoexec.bat

That is all you should need to do.
 
Vanitha Sugumaran
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Mike,
I set the path as you suggested for catalina_home. I already have these lines in the autoexe file.
SET CLASSPATH=C:\PROGRAM FILES\APACHE TOMCAT 4.0\COMMON\LIB\SERVLET.JAR;
but still I can't compile the code, the error I get is can't identify the package.
One more thing, what about jspengine.jar, I couldn't find it in tomcat directory.
I am using win98.
Thanks,
Vanitha.
If this is not an appropriate forum, I am sorry.
 
Nasser Aboobaker
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vanitha,
your statement...
SET JAVA_HOME=C:\jdk1.3
SET TOMCAT_HOME=C:\
SET PATH=%PATH%;C:\PROGRAM FILES\apache tomcat 4.0\bin
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\lib\tools.jar
SET CLASSPATH=C:\PROGRAM FILES\APACHE TOMCAT 4.0\COMMON\LIB\SERVLET.JAR;

I think your second class path line should be first and first one second. or all in one ling..
eg:
SET CLASSPATH=C:\PROGRAM FILES\APACHE TOMCAT 4.0
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\lib\tools.jar
or
SET CLASSPATH=%CLASSPATH%;C:\jdk1.3\lib\tools.jar;C:\PROGRAM FILES\APACHE TOMCAT 4.0

another thing.
You have to specity the directory for Tomcat_home
in your case it should be
Tomcat_Home = C:\PROGRAM FILES\APACHE TOMCAT 4.0 (if this is the directory tomcat is installed)
Even after you have completed all these steps and you are unable to compile then try to type path on command mode and see whether is it loading all directories etc. Post the path result here along with path/directoryname of your tomcat installation, and java installation.
Nasser

[This message has been edited by Nasser Aboobaker (edited October 24, 2001).]
 
Vanitha Sugumaran
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Nasser.
I copied the servlets.jar and put in the jdk1.3\jre\ext file then everything is ok now.
Vanitha.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!