简体   繁体   English

更改默认scala平台netbeans?

[英]change default scala platform netbeans?

I want to change my default Scala platform in netbeans under 我想在netbeans下更改我的默认Scala平台

tools->scala platforms

I cannot delete the default platform and I can't define another default platform, just additional ones! 我无法删除默认平台,我无法定义另一个默认平台,只是额外的平台!

The default platform path doesnt work (error) and somehow it does not find scala when i copy the scala platform to the path of the default platform. 默认平台路径不起作用(错误),当我将scala平台复制到默认平台的路径时,它会以某种方式找不到scala。

Is there a way to do this in NetBeans or in the NetBeans config files? 有没有办法在NetBeans或NetBeans配置文件中执行此操作?

thanks for any help! 谢谢你的帮助!

Answer(Max OSX): 答案(Max OSX):

Go to

/installation/path/NetBeans x.y.app/Contents/Resources/NetBeans/etc/netbeans.conf

change netbeans_defaut_options: 改变netbeans_defaut_options:

netbeans_default_options="..... -J-Dscala.home=/scala/installation/path/scala-x.x.x.y"

I am not sure if the notion of scala platform is still relevant with the current versions of the Scala Netbeans plugin . 我不确定scala平台的概念是否仍与Scala Netbeans插件的当前版本相关。
See bug 172214 : 错误172214

Per nightly built version of Scala plugin, I have removed bundled Scala runtime (the latest was still in 2.7.3), and may not add it back. 每晚构建的Scala插件版本,我已经删除了捆绑的Scala运行时(最新版本仍在2.7.3中),并且可能无法将其添加回来。
The reason is that Scala 2.8.0 changes a lot and is not in beta yet, scala.editor module should sync with Scala 2.8's development progress frequently. 原因是Scala 2.8.0发生了很大的变化而且还没有测试版, scala.editor模块应该经常与Scala 2.8的开发进度同步。

I'll try to get scala.stdplatform module working with the scala sdk under environment $SCALA_HOME. 我将尝试让scala.stdplatform模块在环境$ SCALA_HOME下使用scala sdk。

The latest NetBeans6.9 Scala instructions recommend setting $SCALA_HOME environment variable to point to the installed Scala runtime path. 最新的NetBeans6.9 Scala说明建议将$SCALA_HOME环境变量设置$SCALA_HOME指向已安装的Scala运行时路径。
And to Add $SCALA_HOME/bin to PATH environment variable. 并将$SCALA_HOME/bin添加到PATH环境变量中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM