File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 985

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: 16012
    
  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: 12769
    
    5
Did you install Tomcat as a service or as an application?

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please some body help me, setting enviromental variables for Tomcat 7.