“Could not find main method from given launch configuration” when using Java+Scala+Slick2D

后端 未结 6 1561
清歌不尽
清歌不尽 2021-01-12 03:42

I\'ve got a project in which I\'m using Java+Scala+Slick2D.

The project itself runs well when launched from within eclipse. But when I try to make a jar file, it jus

6条回答
  •  感情败类
    2021-01-12 04:21

    I just encountered the same problem, and here is how I solved it:

    1. Open "Run As" --> "Run Configuration" on the project you want to export

    2. Click "Search" for Eclipse to refresh the list of main class

    3. Then export Runnable JAR file again, and everything goes smoothly.

提交回复
热议问题