ScalaTest in Eclipse: Running it gives NullPointer Exception

主宰稳场 提交于 2019-12-04 20:13:29

Why this happens:

The error can happen if you use sbteclipse to create your eclipse config. sbteclipse uses the Scala Library which in your .ivy2 folder which may not be compatible with the scalatest plugin, and hence the error.

What I learnt after breaking my head and contemplating nuking my PC

Go to Project Properties -> Java Build Path -> Libraries Remove the generated scala library pointing to ivy use 'Add Library...' to add Scala Library that comes with the scala-ide, [Optional] make sure that the Run Configuration uses the bundled Scala Library also.

This solution is brought to you by Chee Seng

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!