This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
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: 4097
63
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.
 
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?
 
Java Cowboy
Posts: 16084
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.
 
Bring out your dead! Or a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!