打开NETBEANS 7.1时提示: cannot locate java installation in specified jdkhome:
cannotlocatejavainstallationinspecifiedjdkhome:C:\ProgramFiles\Java\jdk1.7.0_01doyouw...
cannot locate java installation in specified jdkhome:
C:\Program Files\Java\jdk1.7.0_01
do you want to try to use default version?
为原来安装 JDK 1.7,后来卸载安装 JDK1.6 就出现这个提示了?
如何解决?
解决的方法很简单:C:\Program Files\NetBeans 6.5\etc\netbeans.conf ,或者你自己的安装目录下的etc\netbeans.conf文件内,找到对应的配置信息,修改为新的jdk目录即可。
# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="C:\Program Files\Java\jdk1.7.0_01"
将上面内容改为(新安装JDK路径更新即可):
# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="D:\Program Files\Java\jdk1.6.0_43" 展开
C:\Program Files\Java\jdk1.7.0_01
do you want to try to use default version?
为原来安装 JDK 1.7,后来卸载安装 JDK1.6 就出现这个提示了?
如何解决?
解决的方法很简单:C:\Program Files\NetBeans 6.5\etc\netbeans.conf ,或者你自己的安装目录下的etc\netbeans.conf文件内,找到对应的配置信息,修改为新的jdk目录即可。
# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="C:\Program Files\Java\jdk1.7.0_01"
将上面内容改为(新安装JDK路径更新即可):
# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="D:\Program Files\Java\jdk1.6.0_43" 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询