Fortify Eclipse plug in do not work with JDK 11

  • KM03540761
  • 21-Oct-2019
  • 24-Jan-2020

Archived Content: This information is no longer maintained and is provided "as is" for your convenience.

Summary

Fortify Eclipse plug in do not work with JDK 11

Question

While running the Fortify Remediation and Security assistant plugins in Eclipse. Both got installed without issues, but neither of them work.The Eclipse log was showing: noclassdeffounderror javax/xml/bind/jaxbexception.

But when the customer changes to JDK 8 they start working. Most of the customer projects have migrated to JDK 11.

Answer

Eclipse has a built-in way to run Eclipse on one version but compile in a different version. Take a look at this Eclipse Blog post: https://blogs.eclipse.org/post/wayne-beaton/run-eclipse-ide-one-version-java-target-another
Under the Project’s Properties > Java Compiler page, you can set the target compiler for the project.