• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Doubt on setting the path and class path and java_home

 
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Please tell me as to how to set the values for the above.
Thanks.
 
Bartender
Posts: 4109
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks Vijitha.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic