如何用eclipse打包scala程序.会发现找不到main class

2025-03-26 21:41:10
推荐回答(1个)
回答1:

做法是右键项目-properties-scala Compiler -Build manager :
set the compile order to JavaThenScala instead of Mixed
scala Library,这里选择scala-2.10.5版本
弄好后clean项目。检查problem下面没有报错,然后就可以正常运行了。