关于安装netbeans 找不到JDK的问题解决

http://tech.ccidnet.com/art/302/20080513/1447407_1.html

NetBeans6.1下载地址:https://netbeans.org/downloads/6.1/index.html

发布时间:2008.05.14 06:30     来源:赛迪网    作者:skid

在终端cd到netbeans下载放置的目录,输入./netbeans-6.1-javaee-linux.sh,出现了找不到jdk错误信息:

Configuring installer...

Search JVM on the system...

Java SE Development Kit (JDK) was not found on this computer

JDK 6 or JDK 5 is required for installing the NetBeans IDE. Make sure that the JDK is properly installed and run installer again.

You can specify valid JDK location using --javahome installer argument.

To download the JDK, visit http//java.sun.com/javase/downloads

在Ubuntu下已经安装了JDK5和JDK6,怎么会一个都找不到,难道是两者同时安装了对netbeans有冲突,使得netbeans一个都找不到,或不知道使用哪一个jdk。

幸好提示信息里有个使用 --javahome 安装参数指定JDK安装位置

接着在终端输入 ./netbeans-6.1-javaee-linux.sh --javahome /usr/lib/j2sdk1.6-sun

Configuring installer...

Search JVM on the system...

Extracting installation data...

Running installer wizard...

安装向导窗口正常跳出。

(责任编辑:云子)

转载于:https://my.oschina.net/0xphil/blog/133041

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值