Java error using Eclipse with UFT Developer
Question ID: 109913

Using Eclipse (2020-09) and Java 11 when trying to open the models it gives this error
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at com.hp.lft.appmodel.editor.ui.ApplicationModelEditor.<init>(
… 115 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException cannot be found by com.hpe.lft.appmodel.editor_14.53.0.201906121550
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(
at java.base/java.lang.ClassLoader.loadClass(
… 116 more

Im not sure how to add the jaxb requirement for this plugin. I tried to put a jaxb-api-2.3.1.jar in the dropins folder but it still couldnt find it on the classpath. Im pretty sure Java 11 is supported based on this grid

Marked as spam
Posted by (Questions: 227, Answers: 22)
Asked on October 29, 2020 12:19 am
Answers (1)
Private answer

I have found a possible solution since you said you already copied the .jar file over:

(With Eclipse and the project loaded)
1. Right-click on the parent project in the Eclipse Project Explorer tree
2. Go to Run As >> Run Configuration
3. Click the Arguments tab in the Run configuration window
4. In the VM arguments section, add the command "--add-modules java.xml.bind" (without the quotation marks)
5. Click the Apply button
6. Click the Run button, and test if working without error

Also, here are some additional solutions to try:

Although, this post looks promising:

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on October 29, 2020 12:20 am

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

Scroll to Top