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
  • Main class is not acceptable


    triblion

    Recommended Posts

    Posted

    I made a simple woodcutting script and when I try compile it to a Jar to use it on dreambot (still havent fixed either) it says Main class is not acceptable? Any solution

    Posted

    Because your main class does not contain the java main method, which is public static void main(String[] args), but it doesn't need to for a script.

     

    You do not need to include a main class when compiling a jar for a script since you wont be running it as a standalone.

     

    Just don't choose one.

    Posted

    Because your main class does not contain the java main method, which is public static void main(String[] args), but it doesn't need to for a script.

     

    You do not need to include a main class when compiling a jar for a script since you wont be running it as a standalone.

     

    Just don't choose one.

    Hey,

     

    Sorry I am really new to this, I still don't understand what I am meant to do, I can't find where to make it a .jar. .Java didn't work and neither did just the file or .class file. The only time I can find how to compile it is a .jar using the main class when mine isn't acceptable.

    Posted

    Hey,

     

    Sorry I am really new to this, I still don't understand what I am meant to do, I can't find where to make it a .jar. .Java didn't work and neither did just the file or .class file. The only time I can find how to compile it is a .jar using the main class when mine isn't acceptable.

    What IDE are you using? Each is a bit different.

     

    Also I suggest looking at DreamLicker's video tutorial series. It should have everything you need.

     

    Scripting>Tutorials

    Posted

    What IDE are you using? Each is a bit different.

     

    Also I suggest looking at DreamLicker's video tutorial series. It should have everything you need.

     

    Scripting>Tutorials

    Hey I am using Intellij I will take a look at his tutorials also. Thanks

     

    EDIT: Looked at his tutorials seems to have done the trick thanks.

    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.