how to add the JRE container to a project? [message #202223] |
Sat, 30 April 2005 12:20  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03663 seconds