This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes JAVA_HOME 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 » Java » Beginning Java
Bookmark "JAVA_HOME" Watch "JAVA_HOME" New topic


rama murthy
Ranch Hand

Joined: Jan 13, 2006
Posts: 82
Why we need to set this variable? (I hope this is an environment variable just like path and classpath).
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074

Yes, it is an environment variable just like PATH and CLASSPATH.

You don't need to set it to be able to use the JDK. See the JDK installation instructions - it doesn't say anything about JAVA_HOME.

Some programs (for example Ant and Tomcat) find the JDK by looking at the environment variable JAVA_HOME, so you might need to set it if you want to use those programs.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
rama murthy
Ranch Hand

Joined: Jan 13, 2006
Posts: 82
Thanks Jesper.

I got one more question. Do all these environment variables like path, classpath,java_home has to be set using capital letters. If so why?
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
Some operating systems are case sensitive, and in the past many would use capitals only.

Zakir Hossain
Ranch Hand

Joined: Feb 14, 2006
Posts: 38

u can go to
and get Java Creator as it is same like visual studio

"The Choices We Make, Dictates Our Life To Lead".
I agree. Here's the link:
subject: JAVA_HOME
Similar Threads
WA #1.....word association
regard on k&b book
Home loans in India - fixed or floating ?
Running two threads
Dont declare global variables in Servlet