Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse JustJ » javax.activation and javax.xml.bind ??
javax.activation and javax.xml.bind ?? [message #1832329] Wed, 16 September 2020 12:42 Go to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 197
Registered: October 2010
Location: Austria
Senior Member
Hy Ed,

first off, thanks a lot for your efforts on this! This has (is) a long running topic on our site, and we did not yet manage to transition away from Java 8.

I just gave your builds for JRE 11 a spin for our product (I tried both minimal and full) and on startup I fail with

java.lang.NoClassDefFoundError: javax/activation/DataSource
and
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException cannot be found

I know from our tries to transition away, that these are required for external inclusion. Am I getting things wrong here, that these libraries are to be included in full?

Thanks,
Marco
Re: javax.activation and javax.xml.bind ?? [message #1832331 is a reply to message #1832329] Wed, 16 September 2020 13:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Note that from this page you can view what is present in each bundle:

https://download.eclipse.org/justj/jres/11/updates/release/11.0.2/index.html

E.g., in JustJ OpenJDK Hotspot JRE Complete 11.0.2 -> Properties -> org.osgi.framework.system.packages

Both javax.activation and javax.xml.bind are not present.

A bit of Googling suggests they are removed in Java 11:

https://www.dariawan.com/tutorials/java/using-jaxb-java-11/

Using these instructions:

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#How_to_find_a_P2_repository_at_Eclipse_using_the_Repository_Explorer

You can bundle bundles that export such packages. You should make sure those are installed. I think you also need to explicitly use a package import (or bundle requirement) in the MANIFEST.MF so that this dependency is properly wired.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: javax.activation and javax.xml.bind ?? [message #1832332 is a reply to message #1832331] Wed, 16 September 2020 13:39 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
My guess is that this older version of Eclipse doesn't works with this newer version of Java. Try Java 8 or try a newer version of Eclipse. The version of Eclipse released in the next few hours will require Java 11....

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: javax.activation and javax.xml.bind ?? [message #1832334 is a reply to message #1832332] Wed, 16 September 2020 14:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Sorry, the previous comment what means for a different newsgroup thread...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: javax.activation and javax.xml.bind ?? [message #1832367 is a reply to message #1832334] Thu, 17 September 2020 08:15 Go to previous messageGo to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 197
Registered: October 2010
Location: Austria
Senior Member
Thanks for your feedback!

Is it correct, that JustJ JRE complete should be functionally equal to the adoptopenjdk jre download?
Re: javax.activation and javax.xml.bind ?? [message #1832369 is a reply to message #1832367] Thu, 17 September 2020 08:30 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
As documented on the main page:

https://www.eclipse.org/justj/

The sources of these Java runtimes are any and all versions approved by the Eclipse Foundation for such purposes. Currently that is limited to the latest release available via https://jdk.java.net.

In principle it should be functionally equivalent. But adoptopenjdk provides more builds, e.g., they have Java 11.0.8 while jdk.java.net only has 11.0.2.

If this ever makes progress:

https://projects.eclipse.org/projects/adoptium

We'll have additional approved sources....


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:JustJ requires org.eclipse.equinox.p2.iu?
Next Topic:[Inquiry] JustJ installation creates new eclipse.ini instead of updating <app>.ini
Goto Forum:
  


Current Time: Wed Apr 24 20:44:55 GMT 2024

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

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

Back to the top