Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Discord Implementation to Bot. ( Error on Java Version)


    XZybez
     Share

    Recommended Posts

    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.

     

    Link to comment
    Share on other sites

    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.

     

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.