HeyImJamie Posted May 14, 2017 Posted May 14, 2017 Trying to create a .jar for my recent script but when trying to select the Main class, being JWines, I get this error. Anyone have a clue why? I'm using IntelliJ
HeyImJamie Posted May 14, 2017 Author Posted May 14, 2017 5 minutes ago, The Undefeated said: Please show your JWines class. What do you need to see? It contains the whole script.
HeyImJamie Posted May 14, 2017 Author Posted May 14, 2017 Just now, Butta said: have you tried turning it off and back on? Have you tried turning ETH off and on again so you can get some money back
The Undefeated Posted May 14, 2017 Posted May 14, 2017 1 minute ago, HeyImJamie said: What do you need to see? It contains the whole script. You messed something up there. Please screenshot only the names of all your methods in the class.
HeyImJamie Posted May 14, 2017 Author Posted May 14, 2017 (edited) 3 minutes ago, The Undefeated said: You messed something up there. Please screenshot only the names of all your methods in the class. https://i.gyazo.com/d8744d0d0c4b8fc34f93e32c7d162eff.mp4 Edited May 14, 2017 by HeyImJamie
k9thebeast Posted May 14, 2017 Posted May 14, 2017 (edited) Its quite obviously telling you that your code is not acceptable. I'd suggest rewriting Edited May 14, 2017 by k9thebeast
The Undefeated Posted May 14, 2017 Posted May 14, 2017 12 minutes ago, HeyImJamie said: https://i.gyazo.com/d8744d0d0c4b8fc34f93e32c7d162eff.mp4 Hmm, you don't have any method like "main" declared in it? That would screw shit over. Are you sure JDK is installed correctly?
HeyImJamie Posted May 14, 2017 Author Posted May 14, 2017 2 minutes ago, k9thebeast said: Its quite obviously telling you that your code is not acceptable. I'd suggest rewriting The code works fine saved as .class files?
Butta Posted May 14, 2017 Posted May 14, 2017 17 minutes ago, HeyImJamie said: Have you tried turning ETH off and on again so you can get some money back
HeyImJamie Posted May 14, 2017 Author Posted May 14, 2017 Just now, The Undefeated said: Hmm, you don't have any method like "main" declared in it? That would screw shit over. Are you sure JDK is installed correctly? No Main, just: public class JWines extends Script { but I was told that wouldn't cause a problem.
TheWind Posted May 14, 2017 Posted May 14, 2017 1 hour ago, HeyImJamie said: https://i.gyazo.com/d8744d0d0c4b8fc34f93e32c7d162eff.mp4 Well in this gif it appears to me that the method getImage(String url) is causing an error or something. I suggest using eclipse.
HeyImJamie Posted May 14, 2017 Author Posted May 14, 2017 27 minutes ago, TheWind said: Well in this gif it appears to me that the method getImage(String url) is causing an error or something. I suggest using eclipse. It's not an error, it's just getImage isn't used.