如何在Netbeans中添加Scala平台? [英] How do I add the Scala Platform in Netbeans?

查看:159
本文介绍了如何在Netbeans中添加Scala平台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为Netbeans安装了一套Scala插件,具体来说:

I have installed a set of Scala plugins for netbeans, specifically:

Scala {控制台,项目,运行时库,平台,平台标准,编辑器,调试器项目集成,重构,调试器,核心}和大鼠! Packrat解析器.我还通过ubuntu aptitude软件包管理器安装了scala.

Scala {Console, Project, Runtime Library, Platform, Platform Standard, Editor, Debugger Projects Integration, Refactoring, Debugger, Core} and Rats! Packrat Parser. I have also installed scala via the ubuntu aptitude package manager.

当我转到工具"->"Scala Platform Manager"时,看到红色的"Scala 1.1(默认)",错误为:错误:指定的文件夹不包含Scala平台."我不知道该如何正确指定.我在Google上搜索了一下,似乎大多数人都手工编译了scala,因此他们可以指定其特定的scala安装目录.

When I go to Tools->Scala Platform Manager, I see "Scala 1.1 (Default)" in red, with the error: "Error: The specified folder does not contain a Scala platform." I don't know how to correctly specify this. I googled a bit, and it seems most people have compiled scala by hand, so they can specify their specific scala install directory.

which scala返回/usr/bin/scala,这是我在平台文件夹"选项(以及/usr/bin/)中尝试过的.

which scala returns /usr/bin/scala, which I have tried in the Platform Folder option (as well as /usr/bin/).

netbeans版本是7.0.1,我的scala版本是"Scala代码运行程序版本2.9.2-版权所有2002-2011,LAMP/EPFL".我正在运行Ubuntu 14.04.

The netbeans version is 7.0.1 and my scala version is "Scala code runner version 2.9.2 -- Copyright 2002-2011, LAMP/EPFL". I'm running Ubuntu 14.04.

任何人都知道如何设置Netbeans使其对安装了Scala的智能安装感到满意吗?

Anyone know how to set Netbeans up to be happy with an aptitude installed Scala?

推荐答案

我还没有从aptitude尝试过,但是看来您尚未安装Netbeans的scala插件.

I have not tried from aptitude, but it seems that you have not installed the scala plugin for Netbeans.

您应遵循 https://github.com/dcaoyuan/nbscala

尤其要注意将nbsbt插件添加到您的项目定义中,然后运行sbt.之后,启动Netbeans,它应该可以识别您的项目.

In particular beware to add the nbsbt plugin to your project definition, and run sbt. After that, start Netbeans, it should recognise you project.

这篇关于如何在Netbeans中添加Scala平台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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