• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Doubt on setting the path and class path and java_home

 
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.
 
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • 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.
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • 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
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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.
 
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
Try Free Java/.NET Libraries for Word Excel PowerPoint and PDF
htttp://www.e-iceblue.com/free-apis.html
    Bookmark Topic Watch Topic
  • New Topic