0

你能帮我解决这个问题吗?我尝试使用“Hello,world”之类的简单代码运行scala文件,但出现这样的错误

C:\Users\Ersain\Documents\NetBeansProjects\ScalaApplication4\nbproject\build-impl.xml:403: **The following error occurred while executing this line**:
C:\Users\Ersain\Documents\NetBeansProjects\ScalaApplication4\nbproject\build-impl.xml:236: Problem: **failed to create task or type scalac
Cause: The name is undefined.**

我用这个参数创建了用户变量:SCALA_HOME,value- C:\scala-2.9.1-1\bin; system variable has parameter like user variable

当我去TOOLS->SCALA PLATFORMS它时,它会向我显示这条消息

"Error: The specified folder does not contain a Scala platform.
If you want to specify a different folder for this platform, remove this platform and create a new one with exactly the same name pointing to the correct platform folder."
4

1 回答 1

0

尝试设置SCALA_HOMEC:\scala-2.9.1-1,而不是bin目录。

于 2013-02-10T13:55:40.207 回答