-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PZ Version 41.71 compilation issues due to pz files having been compiled by a more recent version of Java #82
Comments
07/06/22 (for version 41.71, using IntelliJ IDEA) I'll post my solution here incase it helps anybody with the same issue:
Now you should be able to run the code and use anything you need, it will take a second to start as it will first download a newer version of gradle. |
Also change toolchain {
languageVersion = JavaLanguageVersion.of(8)
} to toolchain {
languageVersion = JavaLanguageVersion.of(17)
} In build.gradle and zdoc.gradle to avoid issues during setupWorkspace |
And change Also, if it complains about a missing mod version, add the line |
Won't work, if I try to run it with jdk 17 different errors pop up.
Exception in thread "main" java.lang.UnsupportedClassVersionError: zombie/core/Core has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:284)
at io.cocolabs.pz.zdoc.util.Utils.getClassForName(Utils.java:101)
at io.cocolabs.pz.zdoc.Main.main(Main.java:99)
Execution failed for task ':zomboidVersion'.
The text was updated successfully, but these errors were encountered: