Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2721

Platform builds of CayenneModeler don't work with Java 17

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.1.1, 4.2.B1
    • None
    • None
    • CayenneModeler 4.0.x, 4.1.x, 4.2.x

    Description

      Native versions of CayenneModeler (Mac, Windows) can't start with Java 17. The problem was first reported here: https://lists.apache.org/thread.html/r6576791ff65f9da0265a8e06d544ba7f57d680848a2e997c891429eb%40%3Cdev.cayenne.apache.org%3E

      On MacOS this is a problem, because after installing Java 17, it becomes the default desktop JVM.

      Workarounds:

      • Use cross-platform Modeler. Start it from CLI as "java -jar CayenneModeler.jar" (works on Java 17)
      • (On MacOS) start native CayenneModeler from CLI using Java 11:
        export CLASSPATH=`find ./CayenneModeler.app/Contents/Java -name '*.jar' \
           |perl -ne 'chomp; print "$_:"'`
        java -Xmx500m -Dapple.laf.useScreenMenuBar=true -cp $CLASSPATH \
           org.apache.cayenne.modeler.osx.OSXMain
        

      Attachments

        Issue Links

          Activity

            People

              ntimofeev Nikita Timofeev
              andrus Andrus Adamchik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: