|Building projects programmatically and JRE_CONTAINER [message #987613]
||Tue, 27 November 2012 10:33
| Filip Krikava
Registered: January 2012
I'm writing some tests that are run by maven-tycho. In these tests I programmatically import some existing java projects that I would like to build. These projects have in .classpath the the org.eclipse.jdt.launching.JRE_CONTAINER entry.
I was wondering what is the easiest way to have the org.eclipse.jdt.launching.JRE_CONTAINER set to resolve to the actual running JRE (the one that launched the current Eclipse instance). Right now I'm using JavaCore.setClasspathContainer, but I have to find the location of a JRE myself using code similar to the Util.getJavaClassLibs() from the JDT compiler tests. Perhaps this is done automatically by some plug-in?
Powered by FUDForum
. Page generated in 0.03148 seconds