Reputation: 23
Hi I have seen some threads about the problem. But none of them solved my problem.
When using the Export option from exlipse selecting jar I configure it like this:
so far so good, the Main class is detected. But then when trying to run the jar I get the error:
"Java Virtual Machine Launcher" "Could not find the main class: Program will exit."
Can anyone suggest what I am doing wrong?
Upvotes: 1
Views: 569
Reputation: 134
In Jar export, make sure to check the src folder under the selected projet and check the last 3 options export and uncheck the first one. Hope it will work for you.
Upvotes: 3