官方网站上的原文如下:
- install full JDK
- either edit <netbeans-IDE-installation>/etc/netbeans.conf
- unmark netbeans_jdkhome
- link to JDK location e.g. /usr/local/share/java/jdk1.6.0_07/
- or use –jdkhome command-line option e.g. ./bin/netbeans –jdkhome /usr/local/share/java/jdk1.6.0_07/
大致翻译一下:
- 安装JDK
- 编辑NetBeans安装目录下的/etc/netbeans.conf配置文件。
- 删除netbeans_jdkhome标记
- 将–jdkhome链接到JDK安装目录,例如 /usr/local/share/java/jdk1.6.0_07/ (这是Linux环境的路径)
- 或者用 –jdkhome command-line option,例如 ../bin/netbeans –jdkhome /usr/local/share/java/jdk1.6.0_07/