我已经设置了SCALA_HOME& netbeans.conf中的JAVA_HOME和更新的netbeans_default_options以及每个环境变量和NetBeans 7或8的绝对路径仍然无法在OS X上检测到Scala平台。
SCALA_HOME = /卷/ MyPassportForMac /阶-2.11.1 JAVA_HOME = /图书馆/的Java / JavaVirtualMachines / jdk1.8.0_11.jdk /内容/首页 netbeans_jdkhome ="库/爪哇/ JavaVirtualMachines / jdk1.8.0_11.jdk /内容/主页"
感谢任何帮助。感谢。
答案 0 :(得分:0)
来自http://wiki.netbeans.org/MacOSXEnvForApp页面:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SCALA_HOME</key>
<string>/Volumes/MyPassportForMac/scala-2.11.1</string>
<key>PATH</key>
<string>/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/full/path/of/your/scala/home/bin</string>
</dict>
</plist>
修改强>
对于OS X Lion或更高版本,请编辑文件
/Applications/NetBeans/NetBeans\ 8.0.2.app/Contents/Resources/NetBeans/bin/netbeans
并添加以下
export SCALA_HOME=/Volumes/MyPassportForMac/scala-2.11.1