Scala project won't compile in Eclipse; “Could not find the main class.”

后端 未结 12 785
暗喜
暗喜 2020-12-03 10:14

I have installed Eclipse 3.5.2 and today\'s Scala plugin from /update-current (that\'s Scala 2.8 final.) I can compile and run Scala projects consisting of a single singleto

12条回答
  •  生来不讨喜
    2020-12-03 10:49

    Just copy your XXX.scala file code. Remove the package and create a new Scala Class. Paste your XXX.scala code. (If you are using maven, do a maven clean and build.) Run configuration again. This works for me.

提交回复
热议问题