| Author |
finding classpath from eclipse
|
subodh gupta
Ranch Hand
Joined: Jul 23, 2007
Posts: 203
|
|
Hi, I am running my class files in eclipse now i have to run it in console so can somebody tell me how to find wats the classpath eclipse is using so that i dont have to test each jar for that.
|
http://subodh-gupta.blogspot.com
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14572
|
|
|
Add a line of code to get the classpath property from the java.System packages and print it.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
|
Your Eclipse project's root directory should hold an XML file called ".classpath" that defines the class path.
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16487
|
|
|
On the other hand if you just want to run one of your own classes in the console, and you developed it in an Eclipse project, then everything that is in that project's build path should be in your classpath when you run the class at the command line.
|
 |
 |
|
|
subject: finding classpath from eclipse
|
|
|