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 Krikava
Messages: 43
Registered: January 2012
Member
Hi,

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?

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


Current Time: Thu Oct 23 11:21:34 GMT 2014

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

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