简体   繁体   中英

Deploying Jar file no main class found eclipse

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:

Jar Export Settings

Jar Export Settings 2

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM