• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Tomcat installation problem

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the msg i get when i try to run tomcat 4
"You must set JAVA_HOME to point at your Java Development Kit installation"
My autoexec.bat looks like this
set JAVA_HOME=e:\java
SET CATALINA_HOME=e:\tomcat\tomcat4;
SET CLASSPATH=%CLASSPATH%;e:\java\lib\tools.jar;E:\java\lib\ext;E:\java\lib;e:\java;E:\tomcat\tomcat4\common\lib\servlet.jar;
SET Path=e:\java\bin
I have downloaded the jsdk1.4 under java directory. I am able to execute a Hello world java program. My tomcat is downloaded under tomcat directory.
where am i going wrong???
 
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
Which is the OS your are using(windows xp or the verison of windows)?
Give this try, open the command prompt and echo the java home. Check wether java home is set correctly.
that is i.e,
echo %JAVA_HOME%
excepted out put for your case is e:\java
reply with your out put
-arun
[ February 04, 2002: Message edited by: arun boraiah ]
 
Saloon Keeper
Posts: 24804
172
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your directory structure looks like this:
E:\->JAVA->JSDK1.4
You've set JAVA_HOME wrong. Set it to E:\JAVA\JSDK1.4
If youre directory stucture looks like this:
E:\->Java->lib
Then JAVA_HOME is correct but it got undefined somehow.
Tomcat has its own forum on JavaRanch. You'll find it useful when you need help more specific to Tomcat.
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Follow this URL it will expain how to Intall apace and Tomcat
www.webappcabaret.com/javachina/tomcathowto.htm

wish u all the best and let me know if u have any problem
 
Ranch Hand
Posts: 782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanx for providing this link http://www.webappcabaret.com/javachina/tomcathowto.htm
But the 2nd & 3rd line of this page says u need to have NIC.


It will work through the localhost, therefore your PC needs to have a network card (NIC).


I think if we are using localhost then there is no need to have NIC.
What u think??
Bye.
Viki.
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello shan,
remove the ";" (terminator) after set CATALINA_HOME.
it should be like

set CATALINA_HOME=e:\tomcat\tomcat4
and not

set CATALINA_HOME=e:\tomcat\tomcat4;
also check if you have terminated the JAVA_HOME variable. if u have terminated it then remove the terminator for JAVA_HOME also.
i hope u find this info useful.
bye
loke.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm moving this from Servlets -> Apache/Tomcat as it's much more a configuration issue.

Also, you have a trailing semicolon on your SET CLASSPATH statement, so remove it. It's not like a programming language, the semicolon is only used to separate entries (in Solaris/Unix, it's a colon).

As for: do I need a NIC on my PC to run Tomcat? The short answer is yes. A better answer is, "not if you install a loopback adapter". There is a lengthy post about this topic here:
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=56&t=000130
[ February 05, 2002: Message edited by: Mike Curwen ]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Windows 98 o/s
downloaded j2sdk-1_4_0-rc-win
downloaded tomcat 4 version
SET JAVA_HOME=e:\java
SET CATALINA_HOME=e:\tomcat\tomcat4
SET CLASSPATH= .;
SET CLASSPATH=%CLASSPATH%;e:\java\lib\tools.jar;E:\java\lib\ext;E:\java\lib;E:\tomcat\tomcat4\common\lib\servlet.jar
SET PATH=e:\java\bin
1.under e:\java i have lib
2.when I say echo %JAVA_HOME% i get e:\java
3. removed ";"
4. under e:\tomcat\tomcat4..I have bin directorey
I get msg Bad command or file name when i start the server ???
[ February 05, 2002: Message edited by: shan java ]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the catalina.bat file, starting at line 58
quote:
--------------------------------------------------------------------------------
rem ----- Prepare Appropriate Java Execution Commands ---------------
if not "%OS%" == "Windows_NT" goto noTitle
set _STARTJAVA=start "Catalina" "%JAVA_HOME%\bin\java"
set _RUNJAVA="%JAVA_HOME%\bin\java"
goto gotTitle
:noTitle
set _STARTJAVA=start "%JAVA_HOME%\bin\java"
set _RUNJAVA="%JAVA_HOME%\bin\java"
:gotTitle
-------------------------------------------------
I removed the word "start" (at two places ) and then tried to start tomcat.
It was a SUCCESS. Old posts are very helpful!!!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic