帮助 Scala 2.8 在带有 Netbeans 6.9 的 Fedora 14 上运行
我使用存储库版本 (yum install scala netbeans) 在 Fedora 14(64 位)上安装了 Scala 2.8 和 NetBeans 6.9。然后我从 source-forge 下载了 Nb6.9 的 Scala 2.8 插件。我使用工具安装成功--> NetBeans 的插件菜单。
但现在问题来了。当我启动 Scala 项目并尝试编译小“helloworld”示例(为了查看编译器是否工作)时,我得到以下信息:
/home/user/NetBeansProjects/ScalaApplication1/nbproject/build-impl.xml:42:您必须设置SCALA_HOME 或环境属性并附加“-J-Dscala.home=scalahomepath” 属性到 NetBeansInstallationPath/etc/netbeans.conf 中“netbeans_default_options”的末尾以指向 Scala 安装目录。 BUILD FAILED(总时间:0 秒)
我还注意到 Tools-->Scala Platforms 显示了这一点 http://i56.tinypic.com/110x72x.png
所以这可能是问题的一部分, 也。
我在此处询问之前寻找了答案,但所有教程似乎都已过时或处理完全另一个问题。
I installed Scala 2.8 and NetBeans 6.9 on Fedora 14 (64-bit) by using repository versions (yum install scala netbeans). Then I downloaded Scala 2.8 plugin for Nb6.9 from source-forge. I installed it successfully by using Tools --> Plug-ins menus from NetBeans.
But now problem. When I start Scala project and try to compile little "helloworld" example (in order to see if compiler works), I get this:
/home/user/NetBeansProjects/ScalaApplication1/nbproject/build-impl.xml:42: You must set SCALA_HOME or environment property and append "-J-Dscala.home=scalahomepath"
property to the end of "netbeans_default_options" in NetBeansInstallationPath/etc/netbeans.conf to point to
Scala installation directory.
BUILD FAILED (total time: 0 seconds)
I also noticed that Tools-->Scala Platforms show this
http://i56.tinypic.com/110x72x.png
So probably that is part of the problem, too.
I searched for an answer prior asking here, but all tutorials seem to be outdated or dealing with completely another issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
按照 Netbeans 的指示进行操作。这解决了问题。 :-)
编辑您的 .profile/.bashrc/.zshrc/...(无论您使用/喜欢什么)并添加一个环境变量,指向其中包含 Scala 的目录。
编辑 netbeans.conf 并将“-J-Dscala.home=scalahomepath”添加到末尾。 (请务必将“scalahomepath”替换为实际路径。
Do what Netbeans tells you to do. This solves the problem. :-)
Edit your .profile/.bashrc/.zshrc/... (whatever you use/prefer) and add an enviroment variable pointing to the directory with Scala in it.
Edit your netbeans.conf and add "-J-Dscala.home=scalahomepath" to the end. (Be sure to replace "scalahomepath" with the actual path.