You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (Jira)" <ji...@apache.org> on 2021/11/24 12:55:00 UTC

[jira] [Closed] (CAY-2721) Platform builds of CayenneModeler don't work with Java 17

     [ https://issues.apache.org/jira/browse/CAY-2721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nikita Timofeev closed CAY-2721.
--------------------------------
    Resolution: Fixed

*4.1*: https://github.com/apache/cayenne/commit/f5fc61d0e9bbbeebb900e7c74ce23ef3035a92e9

> Platform builds of CayenneModeler don't work with Java 17
> ---------------------------------------------------------
>
>                 Key: CAY-2721
>                 URL: https://issues.apache.org/jira/browse/CAY-2721
>             Project: Cayenne
>          Issue Type: Task
>         Environment: CayenneModeler 4.0.x, 4.1.x, 4.2.x
>            Reporter: Andrus Adamchik
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.1.1, 4.2.B1
>
>
> *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:
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)