tags:

views:

55

answers:

2

If I manually add another variable like M2_REPO pointing to a directory,

I don't find it in either .project or .classpath,

where is it restored then?

A: 

It's stored in your workspace file.

tangens
There is only a `.metadata` directory and no project specific settings.
httpinterpret
A classpath variable isn't project specific. I don't know exactly where it is stored, but if you change your workspace, you have do define the classpath variable again. So it has to be somewhere inside your workspace configs.
tangens
I just looked up all possible files there,but no luck.
httpinterpret
+1  A: 

It's stored in the JDT settings in your workspace. Check this file under your workspace root,

.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs

This file is not project specific so classpath var is shared by the whole workspace.

ZZ Coder