Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Use osgi.java.profile in headless PDE build(Build with a profile for the Java Runtime)
Use osgi.java.profile in headless PDE build [message #968451] Fri, 02 November 2012 13:23
Martin Skorsky is currently offline Martin SkorskyFriend
Messages: 112
Registered: July 2009
Senior Member
Hi,

I run Eclipse with osgi.java.profile to resolve packages like javax.xml.bind.* properly. Java 7 contains javax.xml.bind in version 2.2.3, but with default settings, the system bundle exports these packages with version 0.0.0.

This is done to avoid javax.xml.bind as a separate bundle and to avoid package uses conflicts. It works OK.

How can I set osgi.java.profile for the PDE headless build? This seems to be tricky since the PDE build can build bundles for different Java runtime versions (Required-ExecutionEnvironment). If the profile is not set, the build cannot resolve all imported packages. In the concrete case javax.xml.bind 2.2.3 is required, but exported with version 0.0.0.

Regards,

Martin
Previous Topic:Launch Run/Debug Configurations
Next Topic:Extending the default java editor
Goto Forum:
  


Current Time: Fri Dec 19 13:42:31 GMT 2014

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

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