Scala Netbeans插件的编译问题 [英] Compilation Issue with Scala Netbeans Plugin
问题描述
在使用Scala插件在Netbeans 7.0下编译基本的Scala项目时遇到了麻烦.
I'm having trouble compiling a basic Scala project under Netbeans 7.0 using the Scala plugin.
/Users/user/NetBeansProjects/ScalaTestApplication/nbproject/build-impl.xml:236:问题:无法创建任务或键入scalac 原因:名称未定义. 行动:检查拼写. 行动:检查是否已声明任何自定义任务/类型. 行动:检查是否已经/声明. 失败(总时间:0秒)
/Users/user/NetBeansProjects/ScalaTestApplication/nbproject/build-impl.xml:236: Problem: failed to create task or type scalac Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any / declarations have taken place. BUILD FAILED (total time: 0 seconds)
有人知道如何解决这个问题吗?
Anyone know how to fix this?
推荐答案
- 确保scalac在您的路径中
- 确保在您的环境中设置了SCALA_HOME
- 将-J-Dscala.home =/your/scala/install添加到netbeans安装目录中etc/netbeans.conf文件的netbeans_default_options中
这篇关于Scala Netbeans插件的编译问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!