It's not a secret anymore!
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
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: 986

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: 17038
    
  26

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


An IDE is no substitute for an Intelligent Developer.
William Brogden
Author and all-around good cowpoke
Rancher

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

Bill
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Please some body help me, setting enviromental variables for Tomcat 7.
 
It's not a secret anymore!