PDA

View Full Version : Tomcat Environmental Variable Issue


ScorpionZ
07-20-2007, 08:10 PM
Hi I am Scorp
I wana know how to Setup Tomcat on my Windows XP....
I have install Tomcat on my machine now it is calling for Environmental Variable of jdk 1.5 and JRE
so let me know what it will be and what will be of Tomcat too....
when i right click on MyComputer>Advanced>Environmental Variables>
There will be box opened there i have to setup
User Variables...
System Variables..
Plz Let me know it about this
I will be waiting....
Thanx...

brad211987
07-23-2007, 10:07 PM
The variable you will want is "JAVA_HOME" and should be set to your JDK installation directory, for example, if you installed your JDK at C:\jdk, then JAVA_HOME=C:\jdk

I set mine up under user variables, but there is only one user on my system so it doesn't make much difference for me.

ess
07-23-2007, 10:55 PM
If you are going to create Servlets, you should also create the CLASSPATH environment variable and add the jsp-api.jar and servlet-api.jar

On my machine, I install Tomcat on C:\Tomcat

So I added the following to my environment variable

CLASSPATH = .;C:\Tomcat\common\lib\jsp-api.jar;C:\Tomcat\common\lib\servlet-api.jar;

Please note that the first argument is a dot "." which indicates that the java compiler should look for references starting from the current directory of where you are compiling your classes, before looking at other references.

Cheers,
Ess