netbeans 7.1.2, scala 2.9.1-1,nbscala-7.1v2.9.x-0.1.zip



你能帮我解决这个问题吗。我试着用"Hello,world"这样的简单代码运行scala文件,但出现了类似的错误

C:UsersErsainDocumentsNetBeansProjectsScalaApplication4nbprojectbuild-impl.xml:403: **The following error occurred while executing this line**:
C:UsersErsainDocumentsNetBeansProjectsScalaApplication4nbprojectbuild-impl.xml:236: Problem: **failed to create task or type scalac
Cause: The name is undefined.**

我用这个参数创建了用户变量:SCALA_HOME,值-C:scala-2.9.1-1bin;系统变量具有与用户变量类似的参数

当我转到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."

尝试将SCALA_HOME设置为C:scala-2.9.1-1,而不是bin目录。

相关内容

  • 没有找到相关文章

最新更新