tomcat asking for java_home
hi...in my system at home i dont which has windows 98 i dont find any variable called classpath...how do i create the var & give value...in my office am working in NT where i goto the mycomputer ..properties...system environment & create a variable
How do i do it in win 98...and also whats the autoexec.bat all about? when i open it , thr is a display of screen that shows the contents of my path variable.
Whats the diff bet java_home and classpath variables. am trying to start tomcat server frm my system & it sayd unable to find java_home.so cannot start.
[591 byte] By [
jmS] at [2007-9-27 20:59:09]

From your Start menu choose Run. Type sysedit into text box.
Your autoexec.bat should contain something likePATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.4\BIN
SET JAVA_HOME=C:\jdk1.4
SET CATALINA_HOME=C:\Tomcat
SET CLASSPATH=.;C:\Tomcat\common\lib\servlet.jar
But of course, you will customize these to point to where you put your jdk and your Tomcat.
w234 at 2007-7-7 2:39:27 >

I use Windas 98 - here is my classpath;-
SET CLASSPATH=C:\jdk1.3.1\jakarta-tomcat-3.2.3\lib\servlet.jar
SET CLASSPATH=C:\j2sdkee1.3\src;c:\j2sdkee1.3\lib\servlet.jar;%classpath%
SET TOMCAT_HOME=C:\jdk1.3.1\jakarta-tomcat-3.2.3
set JAVA_HOME=C:\jdk1.3.1
I use J2sdk to compile servlets and I put tomcat in jdk1.3.1
Hi,
The classpath is where your system looks for certain directories and claases, eg if when you run the java command it will look in JAVA-HOME\bin directory for the java and javac commands. Also, if you have jar files on the classpath, then you add these as the full directory name followed by the jar name.
So, the question is, where are your java and javac commands? Are they in your JAVA_HOME\bin directory? If not, change it accordingly.
Also tomcat does not need to be in a java directory, it can be (say) at C:\tomcat4 so CATALINA_HOME would be set to C:\tomcat4
Hope this helps a bit,
best
kev
thanx w2, sum and kwil...I used sysedit and made changed in the autoexec.bat. There was only a line for path. So i added the following other than path:
PATH=%PATH%;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\MSSQL\BINN;
SET CLASSPATH=%CLASSPATH%;D:\JDK1.2.2\BIN
SET JAVA_HOME=%JAVA_HOME%;D:\JDK1.2.2\BIN;D:\tomcat\bin
SET CATALINA_HOME=%CATALINA_HOME%;D:\tomcat
whether i give set or not...its just not taking it. when i type classpath in the cmd prompt...it does recognize the command and gives error. again if i make changes say in path and type set path...the chenages are not reflected.do i have to restart the comp or something? and does it have to be java_home and cataline_home...cant i use my own variable names?
jmS at 2007-7-7 2:39:27 >

Hi,
Hang ona second, do you need CATALINA_HOME or TOMCAT_HOME ? I think perhaps you need the latter, as you are using an earlier version of tomcat.
Check in th bin file, is there a catalina.bat file? If not, then you need to set TOMCAT_HOME.
Apart from this minor point( well not that minor!), it should be ok. You may get environment errors with win98, but they can be sorted by changing the memeory allocation on the startup and shutdown batch files to the maximum allowed.
best
kev