Open trnstlntk opened 1 year ago
I get exactly the same behavior when trying to open Pattypan 22.02.
Same behavior with M1. Some digging shows that https://github.com/openjfx/javafx-maven-plugin/issues/112 and https://gluonhq.com/javafx-for-apple-m1/
I just built a version for M1/M2. Built it yourself:
brew install ant # If you don't have ant
cd /tmp/
git clone https://github.com/yarl/pattypan.git
cd pattypan
wget https://download2.gluonhq.com/openjfx/20/openjfx-20_osx-aarch64_bin-sdk.zip
ant
I am still not able to install it.
anish@ip-192-xxx pattypan % java -jar pattypan.jar Error: LinkageError occurred while loading main class pattypan.Launcher java.lang.UnsupportedClassVersionError: pattypan/Launcher has been compiled by a more recent version of the Java Runtime (class file version 64.0), this version of the Java Runtime only recognizes class file versions up to 61.0
Same error on Mac Intel.
Cloned and compiled it as suggested by @PythonCoderAS but the resulting jar fails when launched.
Same error on Mac Intel.
Cloned and compiled it as suggested by @PythonCoderAS but the resulting jar fails when launched.
The instructions are only for M1/M2 macs. For intel, use this URL: https://download2.gluonhq.com/openjfx/20/openjfx-20_osx-x64_bin-sdk.zip
Thanks. Now as error i get:
Exception in thread "main" java.lang.UnsupportedClassVersionError: pattypan/Launcher has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0
I updated Java to the latest version on my mac (Java 8.381) but still doesn't work. I got that Java 8 is also called 52, but then I don't understand how to update it to Java 21 (65)
EDIT: found how to fix it, it is needed to update not Java but JDK. Mac download at this link: https://www.oracle.com/java/technologies/downloads/#jdk21-mac
Installing the JDK developer kit fixed a similar error for me on a Windows machine
I'm unable to open Pattypan 22.03 on my M2 Mac. Specs are:
When attempting to open pattypan.jar by double-clicking, I get:
When attempting to open in the Terminal by entering
java -jar pattypan\ 22.03.jar
I get: