3 ms·
Does "capable of running Java 17 classes" imply Java >= 17 or Java <= 17? I tried to run a Java 11 jar on my M1 Mac with $JAVA_HOME pointed at a temurin-11.0.2
by jsd1982 3y ago
Does "capable of running Java 17 classes" imply Java >= 17 or Java <= 17?
I tried to run a Java 11 jar on my M1 Mac with $JAVA_HOME pointed at a temurin-11.0.20 JVM but no such luck:
$ ./jacobin -jar my.jar
Class Format Error: Class has two package names: apple/security and com/sun/crypto/provider
detected by file: cpParser.go, line: 241
ParseAndPostClass: error parsing classes/module-info.class. Exiting.
Class Format Error: Invalid access flags of MethodParameters attribute #1 in main
detected by file: methodParser.go, line: 333
Class Format Error:
detected by file: methodParser.go, line: 109
ParseAndPostClass: error parsing my.Main. Exiting.
- andrewbinstock 3y agoThanks for your note. The package notes on Jacobin say that we strongly discourage folks from running it in its present form. There are enough features still to be implemented, that for anything but trivial classes, you won't have a good experience. TBH, we're about a year out (we think) from having a version we can solicit users to test. Nonetheless, if you'd be kind enough to post the above error and the class you used into the GitHub Issues tracker [0], we'll definitely include it in our test suite and make sure whatever the problem is, it'll be corrected. [0] https://github.com/platypusguy/jacobin/issues https://github.com/platypusguy/jacobin/issues