• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

The file or folder 'java.exe. that this shortcut refers to cannot be found

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have installed JDK1.5 in C:\JDK1.5.
I have installed Tomcat 4.1 in C:\Tomcat.

Path
-----
SET PATH="C:\jdk1.5\bin;"%PATH%
SET JAVA_HOME="C:\jdk1.5;"%PATH%
SET CATALINA_HOME="C:\Tomcat;"
SET CLASSPATH=".;C:\Tomcat\common\lib\servlet.jar;"%PATH%


While I tried to start the Tomcat thru the Start>>Programs>>Apache Tomcat 4.1>>start tomcat, I am getting this error message.




While I tried to start te tomcat thru' the MS-Dos
C:\cd Tomcat
C:\Tomcat>cd bin
C:\Tomcat\bin>startup

I am getting the following error message:




What is the problem? Whether any problem in the path setting.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the Tomcat forum.

Why on earth are you appending PATH to JAVA_HOME?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You get that message when this test fails:

but if CATALINA_HOME is not defined, startup.bat makes a guess of ".."
which should work in your case. So it is seeing CATALINA_HOME but creating an error. I suspect it is due to the trailing ";" in your SET CATALINA_HOME statement. This variable is not dissassembled using ";"
The batch file will NOT discard that so you get an unusable path.
Bill
reply
    Bookmark Topic Watch Topic
  • New Topic