- 论坛徽章:
- 0
|
NetBeans6.9.1更改默认JDK
在Netbeans下编译Maven项目,发现NetBeans默认用的自己安装时的JDK:
Java代码- 1.NetBeans: Executing 'mvn.bat -Dnetbeans.execution=true clean install'
- 2.NetBeans: JAVA_HOME=D:\glassfishv3\jdk
- 3.Scanning for projects...
- NetBeans: Executing 'mvn.bat -Dnetbeans.execution=true clean install'
- NetBeans: JAVA_HOME=D:\glassfishv3\jdk
- Scanning for projects...
复制代码 还是习惯用自己安装的JDK,这样升级JDK时候不用管NetBeans,它也用心的JDK。
找到NetBeans 6.9.1/etc/netbeans.conf 有以下此配置:
Java代码- 1.# Default location of JDK, can be overridden by using --jdkhome <dir>:
- 2.netbeans_jdkhome="D:\glassfishv3\jdk"
- # Default location of JDK, can be overridden by using --jdkhome <dir>:
- netbeans_jdkhome="D:\glassfishv3\jdk"
复制代码 把它改为自己环境变量的JAVA_HOME地址重启NetBeans即可。 |
|