aspose file tools*
The moose likes Servlets and the fly likes Tomcat........ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat........" Watch "Tomcat........" New topic
Author

Tomcat........

Lalit Sha
Greenhorn

Joined: Jan 11, 2001
Posts: 28
I want to install Tomcat for learning servlets and jsp. I just went thru jakarta.apache.org. What should I do--Should I just "install and run the Tomcat 4.0 Servlet/JSP Container" or
"Build from Source the Tomcat 4.0 Servlet/JSP Container".
I could not understand the difference between the two. Could anybody explain to me.
Thanks.
Luca Bracci
Greenhorn

Joined: Oct 07, 2001
Posts: 8
Guys can someone also please help me on the classpath thingy... I got the tomcat running and everythign but cant use the servlet api , it gives me errors saying that javax.servlet not found and stuff , I even created a path pointed it to the proper directory for the servlet.jar file but still no luck...
Luca Bracci
Greenhorn

Joined: Oct 07, 2001
Posts: 8
Ok I am also having a cache problem ... on this site and everywhere ,, I cant even see my own posts after i post them .. please helpe!
Pranit Saha
Ranch Hand

Joined: Sep 09, 2001
Posts: 130
Do u have the jsdk2.0 or later installed.. first u have to install it and then write down the classpath in autoexec.bat file..
set classpath = %CLASSPATH%;c:\JSDK2.0\lib\jsdk.jar;
assuming that it's installed in c:\
Hope it will work..
Pranit
it gives me errors saying that javax.servlet not found and stuff ,
Mohamed Yousuff
Ranch Hand

Joined: Jun 23, 2001
Posts: 73
Originally posted by Pranit Saha:
Do u have the jsdk2.0 or later installed.. first u have to install it and then write down the classpath in autoexec.bat file..
set classpath = %CLASSPATH%;c:\JSDK2.0\lib\jsdk.jar;
assuming that it's installed in c:\
Hope it will work..
Pranit
it gives me errors saying that javax.servlet not found and stuff ,

Raghav Sam
Ranch Hand

Joined: Apr 12, 2001
Posts: 412
Originally posted by Lalit Sha:
I want to install Tomcat for learning servlets and jsp. I just went thru jakarta.apache.org. What should I do--Should I just "install and run the Tomcat 4.0 Servlet/JSP Container" or
"Build from Source the Tomcat 4.0 Servlet/JSP Container".
I could not understand the difference between the two. Could anybody explain to me.
Thanks.

Obviously if you want to learn Servlets & JSP you just install and run the Tomcat 4.0 Servlet/JSP Container. Thats all! Just download the binaries. Set the classpath etc. and get going ! Happy learning !

------------------
Raghav.


Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.<br />- Dr. Seuss
Luca Bracci
Greenhorn

Joined: Oct 07, 2001
Posts: 8
Originally posted by Pranit Saha:
Do u have the jsdk2.0 or later installed.. first u have to install it and then write down the classpath in autoexec.bat file..
set classpath = %CLASSPATH%;c:\JSDK2.0\lib\jsdk.jar;
assuming that it's installed in c:\
Hope it will work..
Pranit
it gives me errors saying that javax.servlet not found and stuff ,


wait you are saying servlet.jar ain't it???
I have to get jsdk?
oh man this is so confusing ..
Pranit Saha
Ranch Hand

Joined: Sep 09, 2001
Posts: 130
Hi Raghav,
i've downloaded Jakarta Tomcat 4.0 and it's in c:\Program files\Jakarta Tomcat4.0.. my classpath is as follows..
set classpath = c:\JSDK2.0\lib;
set classpath = %CLASSPATH%;c:\JSDK2.0\lib\jsdk.jar;
set path = c:\jdk1.2.1\bin;c:\jdk1.2.1\lib;
set JAVA_HOME = c:\jdk1.2.1\bin;c:\jdk1.2.1\bin\java.exe;
set TOMCAT_HOME = c:\Program Files\Jakarta Tomcat 4.0;
But the thing is whenever i click on startup.bat, an error comes like..
cannot find the file 'c:\jdk1.2.1\bin;c:\jdk1.2.1\bin\java.exe;bin\java'(or one of its components). Make sure the path and filename are correct and that all required libraries are available..
So how can i make my Tomcat Running.. pls help..
Originally posted by Raghav Sam:
Obviously if you want to learn Servlets & JSP you just install and run the Tomcat 4.0 Servlet/JSP Container. Thats all! Just download the binaries. Set the classpath etc. and get going ! Happy learning !

Raghav Sam
Ranch Hand

Joined: Apr 12, 2001
Posts: 412
Pranit,
To keep things simple, put ur tomcat installation in c:\ directly (for eg:- c:\Tomcat4) instead of c:\Program files...

Set paths as follows:
set path=%path%;c:\jdk1.2.1\bin
set classpath=%classpath%;c:\jdk1.2.1\lib
set JAVA_HOME=c:\jdk1.2.1
set TOMCAT_HOME=c:\Tomcat4
Now try running startup.bat. Hope this helps.

Originally posted by Pranit Saha:
Hi Raghav,
i've downloaded Jakarta Tomcat 4.0 and it's in c:\Program files\Jakarta Tomcat4.0.. my classpath is as follows..
set classpath = c:\JSDK2.0\lib;
set classpath = %CLASSPATH%;c:\JSDK2.0\lib\jsdk.jar;
set path = c:\jdk1.2.1\bin;c:\jdk1.2.1\lib;
set JAVA_HOME = c:\jdk1.2.1\bin;c:\jdk1.2.1\bin\java.exe;
set TOMCAT_HOME = c:\Program Files\Jakarta Tomcat 4.0;
But the thing is whenever i click on startup.bat, an error comes like..
cannot find the file 'c:\jdk1.2.1\bin;c:\jdk1.2.1\bin\java.exe;bin\java'(or one of its components). Make sure the path and filename are correct and that all required libraries are available..
So how can i make my Tomcat Running.. pls help..


------------------
Raghav.
Palani Raman
Greenhorn

Joined: Oct 09, 2001
Posts: 4
set the path like " set java_home = c:\jdk1.3.0_02
c:\jakarta-tomcat4.0\bin\starup" that's all it will work try with this
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat........
 
Similar Threads
tomcat 4.0
Is Tomcat an application server?
Creating own servlet application
Commercial SCWCD preparation tool
web server/servlet API installation question from a beginner