netbeans 7.1.2、scala 2.9.1-1、nbscala-7.1v2.9.x-0.1.zip [英] netbeans 7.1.2, scala 2.9.1-1,nbscala-7.1v2.9.x-0.1.zip

查看:51
本文介绍了netbeans 7.1.2、scala 2.9.1-1、nbscala-7.1v2.9.x-0.1.zip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能帮我解决这个问题吗?我尝试使用像Hello,world"这样的简单代码运行 Scala 文件,但是出现了这样的错误

Could you help me with this problem. I try to run scala file with simple code like "Hello,world", but there is error like this

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;系统变量有像用户变量这样的参数

I created user variable with this parameter: SCALA_HOME, value- C:\scala-2.9.1-1\bin; system variable has parameter like user variable

当我转到 TOOLS->SCALA PLATFORMS 时,它向我显示此消息

when I go to TOOLS->SCALA PLATFORMS it shows me this message

"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 目录.

Try setting SCALA_HOME to C:\scala-2.9.1-1, not the bin dir.

这篇关于netbeans 7.1.2、scala 2.9.1-1、nbscala-7.1v2.9.x-0.1.zip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆