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

后端 未结 6 1461
清歌不尽
清歌不尽 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:09

    I recently figured a better way to do this using 'Runnable jar export' which might help you. In order for your main method to be listed in that list, you need to add the main method to the Run Configuration list.

    This way it's simpler to create a runnable jar especially if you want to do it repeatedly.

提交回复
热议问题