File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes environment variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "environment variable" Watch "environment variable" New topic

environment variable

Rizvan Asgarov
Ranch Hand

Joined: Jan 07, 2009
Posts: 459

Hi friends,
When i upgraded my IntelliJIDEA to version 10 and run my project, it shows me a message as the following:

cmd /c "C:\Tomcat 6\bin\catalina.bat" run
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
Disconnected from server

Thus, in my system environment i created a new variable with name JAVA_HOME and its value with name C:\Program Files\Java\jdk1.6.0_24\bin.
But when i try to run it again then it shows the same message shown above...

What am I doing wrong? Any help will be appreciated!

"Half of the science is to ask question"
R. Grimes
Ranch Hand

Joined: Aug 23, 2009
Posts: 42
Are you sure you didn't create them in the "user variables" section instead of the "system variables" section of the environment variables panel?

Ron Grimes
Rizvan Asgarov
Ranch Hand

Joined: Jan 07, 2009
Posts: 459

Yes, it worked at last. It is possible that the shutdown/restart has been caused to working correctly
Thanks anyway R. Grimes!
I agree. Here's the link:
subject: environment variable
It's not a secret anymore!