Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Question about setting project bootpath
Question about setting project bootpath [message #329847] Tue, 08 July 2008 14:48 Go to next message
David Whiteman is currently offline David WhitemanFriend
Messages: 166
Registered: July 2009
Senior Member
We would like to configure the bootpath for a project in Eclipse. If
you change the Java build path in the project properties, it will affect
the ordering of classpathentry elements in the .classpath file.
However, I can't see any mechanism to specify that a library should be
part of the runtime bootpath for that project or plugin.

The specific example in our case is that we want the org.apache.xerces
2.9 jar from Eclipse to always be in the boot path ahead of the JRE,
because some JREs include an older implementation of Xerces that will
not work for us. Can the boot path for a project be configured in the
project metadata?

Thanks,
David
Re: Question about setting project bootpath [message #329861 is a reply to message #329847] Tue, 08 July 2008 17:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

David Whiteman wrote:
> We would like to configure the bootpath for a project in Eclipse. If
> you change the Java build path in the project properties, it will affect
> the ordering of classpathentry elements in the .classpath file. However,
> I can't see any mechanism to specify that a library should be part of
> the runtime bootpath for that project or plugin.
>
> The specific example in our case is that we want the org.apache.xerces
> 2.9 jar from Eclipse to always be in the boot path ahead of the JRE,
> because some JREs include an older implementation of Xerces that will
> not work for us. Can the boot path for a project be configured in the
> project metadata?

It sounds like you're mixing up the build-time and runtime classpaths. A
project controls its build-time classpath (its Build Path in
properties), but the runtime classpath is controlled by a launch
configuration.

I don't think a project could dictate such things about runtime, since
it can't know if other projects are involved in the launch(es) it
participates in.

Eric
Re: Question about setting project bootpath [message #329864 is a reply to message #329861] Tue, 08 July 2008 18:02 Go to previous messageGo to next message
David Whiteman is currently offline David WhitemanFriend
Messages: 166
Registered: July 2009
Senior Member
Eric Rizzo wrote:
> It sounds like you're mixing up the build-time and runtime classpaths. A
> project controls its build-time classpath (its Build Path in
> properties), but the runtime classpath is controlled by a launch
> configuration.
>
> I don't think a project could dictate such things about runtime, since
> it can't know if other projects are involved in the launch(es) it
> participates in.
>
> Eric

Thanks for your reply Eric. So what do you do if your plugin requires a
library that is at a later revision than one in the JRE? We just want
to make sure the Xerces we are bundling is invoked before the backlevel
Xerces libraries in the JRE. Is that not possible? When a user
installs our plugin into Eclipse, they aren't running a launch
configuration.

David
Re: Question about setting project bootpath [message #329967 is a reply to message #329864] Fri, 11 July 2008 14:02 Go to previous messageGo to next message
David Whiteman is currently offline David WhitemanFriend
Messages: 166
Registered: July 2009
Senior Member
David Whiteman wrote:
> Eric Rizzo wrote:
>> It sounds like you're mixing up the build-time and runtime classpaths.
>> A project controls its build-time classpath (its Build Path in
>> properties), but the runtime classpath is controlled by a launch
>> configuration.
>>
>> I don't think a project could dictate such things about runtime, since
>> it can't know if other projects are involved in the launch(es) it
>> participates in.
>>
>> Eric
>
> Thanks for your reply Eric. So what do you do if your plugin requires a
> library that is at a later revision than one in the JRE? We just want
> to make sure the Xerces we are bundling is invoked before the backlevel
> Xerces libraries in the JRE. Is that not possible? When a user
> installs our plugin into Eclipse, they aren't running a launch
> configuration.
>
> David

Is this the correct newsgroup for questions about classpath, etc.?

David
Re: Question about setting project bootpath [message #329999 is a reply to message #329967] Fri, 11 July 2008 19:27 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

David Whiteman wrote:
> David Whiteman wrote:
>> Eric Rizzo wrote:
>>> It sounds like you're mixing up the build-time and runtime
>>> classpaths. A project controls its build-time classpath (its Build
>>> Path in properties), but the runtime classpath is controlled by a
>>> launch configuration.
>>>
>>> I don't think a project could dictate such things about runtime,
>>> since it can't know if other projects are involved in the launch(es)
>>> it participates in.
>>>
>>> Eric
>>
>> Thanks for your reply Eric. So what do you do if your plugin requires
>> a library that is at a later revision than one in the JRE? We just
>> want to make sure the Xerces we are bundling is invoked before the
>> backlevel Xerces libraries in the JRE. Is that not possible? When a
>> user installs our plugin into Eclipse, they aren't running a launch
>> configuration.
>>
>> David
>
> Is this the correct newsgroup for questions about classpath, etc.?

If you don't get response, try eclipse.platform.pde or maybe even
eclipse.platform.rcp
I don't know the answer myself, but would like to know. If you decide to
cross-post, please do it as a follow-up to this thread so we all see the
responses.

Eric
Previous Topic:RCP as Windows Service
Next Topic:Missing required bundle is active!
Goto Forum:
  


Current Time: Fri Nov 08 22:47:36 GMT 2024

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

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

Back to the top