Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Adding JRE container to classpath?
Adding JRE container to classpath? [message #46241] Sun, 01 June 2003 19:34 Go to next message
Eclipse UserFriend
Originally posted by: objectiveous.yahoo.com

Folks,

I've create a new project wizard for my development team and I need to add
the JRE container to the classpath. I've been poking arounf in
org.eclipse.jdt.ui.wizards but can't seem to grok how to get the following
added into .classpath:
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>

Thanks in advance.
Re: Adding JRE container to classpath? [message #47261 is a reply to message #46241] Tue, 03 June 2003 12:43 Go to previous message
Martin Aeschlimann is currently offline Martin AeschlimannFriend
Messages: 71
Registered: July 2009
Member
Use JavaRuntime.getDefaultJREContainerEntry() to get the IClasspath
entry. (to use with IJavaProject.setRawClasspath())

Note that you can also simply add the JavaCapabilityConfigurationPage as
an additional page to your project wizard and give the user to preview
the settings. The page adds the correct JRE entry (container or variable
as specified by the user) and on finish you can call this page to config
the Java nature including class path.
As a complete example on how to use the JavaCapabilityConfigurationPage,
see MyProjectCreationWizard from the org.eclipse.jdt.ui.tests plugin.

Martin

Rob Evans wrote:
> Folks,
>
> I've create a new project wizard for my development team and I need to add
> the JRE container to the classpath. I've been poking arounf in
> org.eclipse.jdt.ui.wizards but can't seem to grok how to get the following
> added into .classpath:
> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>
> Thanks in advance.
>
>
Previous Topic:Name of a PackageFragmentRoot
Next Topic:Overriding preferences in Eclipse.
Goto Forum:
  


Current Time: Thu Dec 26 23:39:50 GMT 2024

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

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

Back to the top