简体   繁体   中英

Eclipse not finding main method when trying to export to runnable JAR

I am trying to include some external dependencies in my JAR file when I export from eclipse, so I'm using the "Runnable JAR" export option. But when I choose my configuration to export and click "Finish", I get these errors . That configuration runs completely fine when I use Right Click > Run As on the class, and my main method is right here in the file I told Eclipse to look in. What could I be doing wrong when I export?

Here's my run configuration.

事实证明,JDK 9之后的最新Java版本会导致Eclipse出现某种问题,并且我能够在切换到JDK 8后导出。

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