• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt on setting the path and class path and java_home  RSS feed

 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Today, i installed eclipse3.4. I do not know how to set path, classpath and java_home in environment variables. Kindly help me.
 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Please tell me as to how to set the values for the above.
Thanks.
 
Vijitha Kumara
Bartender
Posts: 4002
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you installed JDK? If so, set the "JAVA_HOME" to your JDK installation folder. Set the "path" to the bin folder of the JDK folder. Set the "CLASSPATH" to whatever location you have classes or JAR files which you need to invoke when compiling/running a java application.
 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks Vijitha.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean "set values"?
You want to specify it for the OS or Eclipse?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse doesn't need the PATH, CLASSPATH and JAVA_HOME environment variables.

If you want to run the Java compiler and other tools from the JDK from the command line, then you should add the 'bin' directory of the JDK to your PATH. See the JDK installation instructions for details.

The CLASSPATH is used by Java to find class files to load. You normally should not set it at all.

The JAVA_HOME variable is not needed for most Java software. Some software wants this to be able to find the JRE. If you have installed the JDK, you could make it point to the JDK installation directory. But I wouldn't set it unless I would have software that specifically asks for it.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jesper Young:
Eclipse doesn't need the PATH, CLASSPATH and JAVA_HOME environment variables.


True. But you can if required.
In the run dialog you can do it through the classpath and environment tabs.
Since the OP mentioned "Today I installed Eclipse.." I was trying to confirm where exactly these settings need to go.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!