Micha Wiedenmann
Micha Wiedenmann

Reputation: 20843

Where does eclipse save the classpath variables values?

Eclipse supports configuring classpath variables (Window -> Preferences -> Java -> Build Path -> Classpath Variables):

classpath variables

Where does it store the values?

Please note: This question does not ask for the .classpath file, but rather for the Classpath Variables configuration place. People can share the same .classpath file using variables and still have their classpath variables configured differently.

Upvotes: 10

Views: 6257

Answers (2)

Bhushan Kawadkar
Bhushan Kawadkar

Reputation: 28513

in your project root folder, eclipse creates .classpath file to store classpath. to get classpath variables, you need to follow following path

YourWorkspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.core.prefs

in this file you can find variables.

Upvotes: 5

David
David

Reputation: 20063

They're stored in a file in the workspace, normal location is...

workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.core.prefs

They're stored in a this prefs file which if you open up, will look like...

org.eclipse.jdt.core.classpathVariable.JBOSS_HOME=C\:/DEVELOPMENT/JBoss
org.eclipse.jdt.core.classpathVariable.JDK_HOME=C\:/DEVELOPMENT/Java/jdk1.7.0_1

Upvotes: 15

Related Questions