cp-api / capella

0 stars 0 forks source link

Capella does not start with Java 11 or 12 #482

Open eclipse-capella-bot opened 3 years ago

eclipse-capella-bot commented 3 years ago

While doing some tests on Capella, I tried to launch it with JDK 12.0.2.

It appears that the eclipse.ini is incomplete: --add-modules=ALL-SYSTEM should be added (as done in .ini of the Eclipse packages since Oxygen 3.a)

Then I get several initialization errors due to the use of javax in Capella classes: the root causes seems to be always the same:

java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException java.lang.ClassNotFoundException: javax.xml.bind.JAXBException

Several Java EE and CORBA modules have been removed from the JDK 11 (see https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html) :

javax.xml.bind.context.factory javax.xml.bind.JAXBContext

Those errors prevent several Capella bundles to start. Note that Eclipse Photon and Eclipse 2019-06 start well.

See the attached log file.

ECLIPSE-554460 POLARSYS-2565 @mpo 2019-08-01

eclipse-capella-bot commented 3 years ago

mpo commented on 2019-08-01

Attachment: capella140_jdk12.0.2.log Coredump

mpo commented on 2019-08-01

See org.polarsys.capella.common.tools.report.config.persistence.CreateXmlConfiguration

gco commented on 2019-09-04

In my case, I also had to do some tests running Capella 1.3.x with Java 11. I was not able to launch a capella 1.3.x with java 11 until I add javax.xml.bind into org.polarsys.capella.common.tools.report required dependencies.

As javax.xml.bind is not in Java 11+, it is possible the javax.xml.bind and javax.xml.stream should have to be added in target platform dependencies.

mpo commented on 2019-11-20

Note that javac.xml.bind could be taken in Orbit. For example: javax.xml.bind 2.2.0.v201105210648 is present in Orbit-2019-06 "https://download.eclipse.org/tools/orbit/downloads/drops/R20190602212107/repository"