Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Building projects programmatically and JRE_CONTAINER
Building projects programmatically and JRE_CONTAINER [message #987613] Tue, 27 November 2012 10:33
Filip Krikava is currently offline Filip KrikavaFriend
Messages: 45
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?

Previous Topic:Probably JDK is not installed.
Next Topic:Eclipse Problem
Goto Forum:

Current Time: Wed Jun 20 23:16:25 GMT 2018

Powered by FUDForum. Page generated in 0.01397 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top