HeyImJamie Posted May 14, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
The Undefeated Posted May 14, 2017 Share Posted May 14, 2017 Please show your JWines class. Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted May 14, 2017 Author Share 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. Quote Link to comment Share on other sites More sharing options...
Butta Posted May 14, 2017 Share Posted May 14, 2017 have you tried turning it off and back on? 1 Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted May 14, 2017 Author Share 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 Quote Link to comment Share on other sites More sharing options...
The Undefeated Posted May 14, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted May 14, 2017 Author Share 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 Quote Link to comment Share on other sites More sharing options...
k9thebeast Posted May 14, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
The Undefeated Posted May 14, 2017 Share 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? Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted May 14, 2017 Author Share 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? Quote Link to comment Share on other sites More sharing options...
Butta Posted May 14, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted May 14, 2017 Author Share 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. Quote Link to comment Share on other sites More sharing options...
TheWind Posted May 14, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted May 14, 2017 Author Share 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. Quote Link to comment Share on other sites More sharing options...