Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-27592

Hibernate Plugins unable to load its classes due to different jdk

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Minor
    • LATER
    • 4.17.0.Final
    • hibernate
    • None
    • Undefined
    • ---

    Description

      I use Eclipse IDE JEE Version: 2020-12 (4.18.0) with Jboss Tools 4.17.

      When clicking the "Rebuild Hibernate Console Configuration", the following error is shown:

      Project 'test' has higher compiler option than running Eclipse. Hibernate Plugins unable to load its classes. Please decrease the compiler option or run the Eclipse with higher JDK level.

       

      The message is irritating because both, the system and the project configuration uses the same java compiler version (jdk 12).

      The solution is to change the default Eclipse vm-argument in eclipse.ini:

      -vm
      ../Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_15.0.1.v20201027-0507/jre/lib/libjli.dylib

      to use the system JDK as described here https://stackoverflow.com/questions/27001200/project-myproject-has-higher-compiler-option-than-running-eclipse.

       

      I think the error message could be more precise or maybe another solution which does not need to change the default vm arguments in eclipse.ini can avoid such errors.

      Attachments

        Activity

          People

            kaers@redhat.com Koen Aers
            nimo22 nimo stephan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: