Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » how to add the JRE container to a project?
how to add the JRE container to a project? [message #202223] Sat, 30 April 2005 12:20 Go to next message
Eclipse UserFriend
How do I add the standard JRE container to a new project?
It must be something like this, but I don't know how to find the correct
IPath for the JRE container...

?>>> IClasspathEntry rte = JavaCore.newContainerEntry(... ??? ...);

javaProj.setRawClasspath(new IClasspathEntry[]{src, rte}, null);

I'm trying to write some PDE JUnit testcases that need to create a
compilable project in the test workspace...

Thanks,

Frank
Re: how to add the JRE container to a project? [message #202233 is a reply to message #202223] Sat, 30 April 2005 18:17 Go to previous message
Eclipse UserFriend
Try JavaRuntime.JRE_CONTAINER

Genady Beryozkin
http://www.genady.net/



Frank Sauer wrote:

> How do I add the standard JRE container to a new project?
> It must be something like this, but I don't know how to find the
> correct IPath for the JRE container...
>
> ?>>> IClasspathEntry rte = JavaCore.newContainerEntry(... ??? ...);
>
> javaProj.setRawClasspath(new IClasspathEntry[]{src, rte}, null);
>
> I'm trying to write some PDE JUnit testcases that need to create a
> compilable project in the test workspace...
>
> Thanks,
>
> Frank
Previous Topic:Using plugins in non RCP Java app
Next Topic:Problem in Starting Weblogic from eclipse...
Goto Forum:
  


Current Time: Sun Jul 27 01:48:27 EDT 2025

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

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

Back to the top