Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Tomcat and the fly likes Please some body help me, setting enviromental variables for Tomcat 7. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Please some body help me, setting enviromental variables for Tomcat 7." Watch "Please some body help me, setting enviromental variables for Tomcat 7." New topic
Author

Please some body help me, setting enviromental variables for Tomcat 7.

Singh Kuldeep
Greenhorn

Joined: Jul 18, 2012
Posts: 19
Hi guys,
I have a problem while using tomcat 7. I set all the variables like JAVA_HOME, PATH, CLASSPATH, JRE_HOME. But when i try to run server, its get failed. and displays a message "JRE_HOME variable not set correctlly".
Please some body help me.
Than You
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

More details would be helpful. Like what platform you are using. Ex: windows vs !windows.


Please ignore post, I have no idea what I am talking about.
Singh Kuldeep
Greenhorn

Joined: Jul 18, 2012
Posts: 19
thanks William for replying. I am using Windos 7. and variables setted as
PATH=C:\Program Files\Java\jdk1.7.0_05\bin;
CLASSPATH=C:\Program Files\Java\jdk1.7.0_05\lib;
JAVA_HOME=C:\Program Files\Java;
JRE_HOME=C:\Program Files\Java\jre7;
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959
    
  19

You shouldn't use both JAVA_HOME and JRE_HOME. But if you do, they should be set to the same directory.


Customer surveys are for companies who didn't pay proper attention to begin with.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Did you install Tomcat as a service or as an application?

Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Please some body help me, setting enviromental variables for Tomcat 7.
 
Similar Threads
Tomcat and JAVA_HOME
Tomcat not seeing setenv values in Windows 2003 Server
Not able to start Tomcat
how to set path?
Starting up Server to run Servlet application.