加入收藏 | 设为首页 | 会员中心 | 我要投稿 汽车网 (https://www.0577qiche.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 系统 > 正文

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

发布时间:2023-08-21 13:23:06 所属栏目:系统 来源:
导读:在终端cd到netbeans下载放置的目录,输入./netbeans-6.1-javaee-linux.sh,出现了找不到jdk错误信息:

Configuring installer...

Search JVM on the system...

Java SE Development Kit (JDK) was not foun
在终端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...

安装向导窗口正常跳出。

(编辑:汽车网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章