Java error using Eclipse with UFT Developer
Category:
Question ID: 109913
0
0

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>(ApplicationModelEditor.java:55)
… 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(BundleLoader.java:516)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
… 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
https://admhelp.microfocus.com/documents/uft/UFT_14.xx_PAM.html#Oracle%20Java

Marked as spam
Posted by (Questions: 227, Answers: 22)
Asked on October 29, 2020 12:19 am
361 views
Answers (1)
0
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:

https://crunchify.com/java-11-and-javax-xml-bind-jaxbcontext/

https://crunchify.com/ideal-eclipse-ini-file-setup-for-your-eclipse-environment-best-practice-for-macos-and-windows/

Although, this post looks promising:

https://stackoverflow.com/questions/2037188/how-to-configure-eclipse-build-path-to-use-maven-dependencies

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

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

X
Scroll to Top