为NetBeans配置开发Java所需的JDK路径

2022-12-23 16:15:30 浏览数 (1)

官方网站上的原文如下:

  1. install full JDK
  2. either edit <netbeans-IDE-installation>/etc/netbeans.conf
    1. unmark netbeans_jdkhome
    2. link to JDK location e.g. /usr/local/share/java/jdk1.6.0_07/
  3. or use –jdkhome command-line option e.g. ./bin/netbeans –jdkhome /usr/local/share/java/jdk1.6.0_07/

大致翻译一下:

  1. 安装JDK
  2. 编辑NetBeans安装目录下的/etc/netbeans.conf配置文件。
    1. 删除netbeans_jdkhome标记
    2. 将–jdkhome链接到JDK安装目录,例如 /usr/local/share/java/jdk1.6.0_07/ (这是Linux环境的路径)
  3. 或者用 –jdkhome command-line option,例如 ../bin/netbeans –jdkhome /usr/local/share/java/jdk1.6.0_07/

0 人点赞