# still problems with tomcat

Val Dra
Ranch Hand
Posts: 439
Hi i have correctly setup the environment variables and i get no errors there but when i try to startup the tomcat i get this
Notice this line
Cannot find file 'c:\jdk1.3\bin\bin\java' (or one of its components).
i dont have this in my path how does it add bin\java my path is not structured like this i looked at the startup.bat file and i noticedit they add it to the variables there so i tried to remove these \bin\java but that didn't seem to work either. What do i do wrong ?
Microsoft(R) Windows 98
C:\WINDOWS\Desktop>cd c:\tomcat\bin
C:\tomcat\bin>startup
Including all jars in c:\tomcat\lib in your CLASSPATH.
Using CLASSPATH: c:\tomcat\classes;c:\tomcat\lib\ANT.JAR;c:\tomcat\lib\JAXP.JAR;
c:\tomcat\lib\SERVLET.JAR;c:\tomcat\lib\PARSER.JAR;c:\tomcat\lib\WEBSER~1.JAR;c:
\tomcat\lib\JASPER.JAR
Starting Tomcat in new window
Cannot find file 'c:\jdk1.3\bin\bin\java' (or one of its components).
Check to ensure the path and filename are correct and that all
required libraries are available.
C:\tomcat\bin>

Carl Trusiak
Sheriff
Posts: 3341
You have the setting for JAVA_HOME set wrong. Apparently by the erro message you have it set for 'c:\jdk1.3\bin' and it should be set to 'c:\jdk1.3' Modify this environment variable and let us know how it goes.

Val Dra
Ranch Hand
Posts: 439
Carl thanks , that did it i did have \bin in there. It appends \bin\java in the .bat file although why add \java i don't have that. Interesting...

Carl Trusiak
Sheriff
Posts: 3341
Originally posted by Val Dra:
why add \java i don't have that. Interesting...

Tomcat is trying to run java.exe by calling %JAVA_HOME%\bin\java

------------------
Hope This Helps
Carl Trusiak

Val Dra
Ranch Hand
Posts: 439
i was able to view samples done by tomcat if i wanted to create my own where do i place them so i can run them though browser ? Thanks.