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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.