XZybez 2 Posted May 4, 2020 Hi Community, hopefully some one had issue already or can assist m at least. I did create a new project with Guide of (Thought maybe i do something wrong but i get same issue here as well) : To this point everything works great. As soon i add JDA (Java Discord API) to the Project i can not load my script. Exception in thread "Thread-19" java.lang.UnsupportedClassVersionError: module-info has been compiled by a more recent version of the Java Runtime (class file version 53.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:763) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.dreambot.api.script.loader.LocalLoader.loadJar(LocalLoader.java:302) at org.dreambot.api.script.loader.LocalLoader.loadJar(LocalLoader.java:265) at org.dreambot.api.script.loader.LocalLoader.traverse(LocalLoader.java:207) at org.dreambot.api.script.loader.LocalLoader.loadScripts(LocalLoader.java:171) at org.dreambot.api.script.loader.LocalLoader.<clinit>(LocalLoader.java:142) at org.dreambot.0.1.1.3.4.0(4.java:639) at org.dreambot.0.1.1.3.4.0r(4.java:631) at org.dreambot.0.1.1.3.4.0x(4.java:625) at org.dreambot.0.1.1.3.4.0s(4.java:357) at org.dreambot.0.1.1.3.4.0q(4.java:106) at java.lang.Thread.run(Thread.java:748) This is my Java Version on System and Intellij installed. Quote java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode) I don't have any other Java Version installed to prevent issues. Thank you.
Articron 746 Posted May 4, 2020 JDA was compiled with a higher java version. You're better off packing the java files into your script itself and then recompile.
XZybez 2 Author Posted May 4, 2020 Looks like only module-info got compiled somehow with higher version only. Trying to figure how i can remove it on build. The content of it is more of this dependency which is a part of it. <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.10.3</version> </dependency> I have a similar project running where i have all the jar files in the libs folder of the Dream Bot.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.