将Scala设置为“平台"适用于Ubuntu Lucid Lynx上的NetBeans 6.8 [英] Setting Scala "Platform" for NetBeans 6.8 on Ubuntu Lucid Lynx

查看:70
本文介绍了将Scala设置为“平台"适用于Ubuntu Lucid Lynx上的NetBeans 6.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将NetBeans 6.8与Scala一起使用,并且它找不到"Scala平台"(无论 应该是什么).我正在使用Ubuntu Lucid Lynx(已完全更新).

I'm trying to use NetBeans 6.8 with Scala, and it can't find the "Scala Platform" (whatever that is supposed to be). I'm using Ubuntu Lucid Lynx (fully updated).

库位于/usr/share/java中,二进制文件位于/usr/bin中,文档位于/usr/share/doc/scala-doc/中,并且已卸载源.我认为NetBeans正在将Scala放在一个目录中(包括bin,lib等).我创建了/usr/share/scala并放置了指向其他目录的链接,但是它仍然做不到.

The libraries are in /usr/share/java, the binaries in /usr/bin, the docs in /usr/share/doc/scala-doc/, and the sources are uninstalled. I think that NetBeans is looking for Scala to be in one single directory (with bin, lib, etc.). I created /usr/share/scala and placed links to the other directories, but it still didn't quite make it.

有人可以矫正我吗? (为什么它是平台"?更多不必要的行话...)

Can someone straighten me out? (And why is it a "platform"? More needless jargon...)

推荐答案

作为安装说明,插件解释,您必须将SCALA_HOME环境变量设置为已安装Scala的目录.

As the installation instructions for the plugin explain, you must set the SCALA_HOME environment variable to the directory where you have Scala installed.

因此,首先下载并将Scala 2.8.0的最新候选版本安装在您的计算机上系统(我自己将其放在/usr/local/scala中). /etc/environment是放置环境变量的一个好地方.在该文件中添加如下一行:

So, first download and install the latest release candidate of Scala 2.8.0 somewhere on your system (I like to put it in /usr/local/scala myself). A good place to put the environment variable is in /etc/environment. Add a line like this to that file:

SCALA_HOME=/usr/local/scala

您需要先注销然后再登录才能使它生效.

You need to log out and back in to let this take effect.

(注意:Scala 2.8 final很有可能会很快发布,它包含自2.7版本以来的许多新功能和更改.在我看来,最好使用2.8版本的候选版本,不要太在意2.8版本的发布.即将淘汰2.7版.

(Note: Scala 2.8 final is most likely to be released soon, and it contains a lot of new features and changes since 2.7. In my opinion it's best to use the 2.8 release candidates, don't bother too much with the soon to be obsolete version 2.7).

这篇关于将Scala设置为“平台"适用于Ubuntu Lucid Lynx上的NetBeans 6.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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