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
  • "Exception in thread "main" java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 8" Error


    girlbotter

    Recommended Posts

    So i'm getting this logged to my terminal when I try to execute the jar. I use ubuntu 17.04 and it was working fine before until I installed openjdk-9 through the package manager. I deleted all of the openjdk packages and reinstalled each one by one and tried executing each and I always get this error. I tried the oraclejdk-9 as well with no avail. I've also tried to deleted all of the dot files as well before re-installing. Nothing works. Here is the full stack trace. Thanks in advance.

     

    35 [12:38:48] ~$ java -jar DBLauncher.jar 
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 8
    at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3123)
    at java.base/java.lang.String.substring(String.java:1911)
    at org.dreambot.launcher.LauncherMethods.getJavaVersion(LauncherMethods.java:94)
    at org.dreambot.ui.DreamLauncherUI.initComponents(DreamLauncherUI.java:66)
    at org.dreambot.ui.DreamLauncherUI.<init>(DreamLauncherUI.java:52)
    at org.dreambot.launcher.DreamLauncher.generateLauncherUI(DreamLauncher.java:26)
    at org.dreambot.launcher.DreamLauncher.main(DreamLauncher.java:17)
     
    Link to comment
    Share on other sites

    Dunno why this didn't work last night but I reinstalled openJDK8 and it seems to be alright. But yeah I think ill switch to oraclejdk8 per your advice. Thanks all. 

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • 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.