triblion 56 Posted September 10, 2016 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
Mad 86 Posted September 11, 2016 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.
triblion 56 Author Posted September 11, 2016 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.
Hopewelljnj 46 Posted September 11, 2016 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
triblion 56 Author Posted September 11, 2016 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.