Alrighty, so I packaged my files into an executable .jar using Eclipse, however when I try to run it by clicking or opening it informs that it "could not find or load main class Calculator.jar". However, if I launch it from the command prompt, (java -jar Calculator.jar), it runs like a charm. What's the issue here?
Asked
Active
Viewed 411 times
0
-
Have you defined the main class? – Daksh Shah Apr 08 '14 at 05:53
-
@Daksh Most definitely, there's only one class in the jar. The manifest seems to be fine. – Googly_ Apr 08 '14 at 05:55
-
Have you read this http://stackoverflow.com/questions/18093928/what-does-could-not-find-or-load-main-class-mean ? – Daksh Shah Apr 08 '14 at 05:55
-
@Daksh Read the whole thing ^.^ – Googly_ Apr 08 '14 at 06:03