ubuntu上安装netbeans提示找不到jdk的解决办法

改变文件权限使用命令:chmod 777 filename
然后才可以使用输入:./xxx.sh 执行安装操作



zyx@zyx-desktop:/$ cd home/zyx/Downloads/
zyx@zyx-desktop:~/Downloads$ ls
jdk-6u25-nb-7_0-linux-ml.sh   netbeans-7.0-ml-cpp-linux.sh  
zyx@zyx-desktop:~/Downloads$ chmod 777 jdk-6u25-nb-7_0-linux-ml.sh

输入:./jdk-6u25-nb-7_0-linux-ml.sh 执行安装操作

zyx@zyx-desktop:~/Downloads$ ./jdk-6u25-nb-7_0-linux-ml.sh
Configuring the installer...
Searching for JVM on the system...
Preparing bundled JVM ...
Extracting installation data...
Running the installer wizard...

此处跳出jdk-6u25-nb-7_0-linux安装向导窗口。安装步骤同xp系统雷同

zyx@zyx-desktop:~/Downloads$ ls

jdk-6u25-nb-7_0-linux-ml.sh  netbeans-7.0-ml-cpp-linux.sh
zyx@zyx-desktop:~/Downloads$ chmod 777 netbeans-7.0-ml-cpp-linux.sh
zyx@zyx-desktop:~/Downloads$ ./netbeans-7.0-ml-cpp-linux.sh
Configuring the installer...
Searching for JVM on the system...
Java SE Development Kit (JDK) was not found on this computer

此时跳出错误!!!

JDK 6 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
You can specify valid JDK location using --javahome installer argument.

灵感来源于错误描述:

1.未找到JDK
Java SE Development Kit (JDK) was not found on this computer
2.可指定--javahome installer argument路径来解决
You can specify valid JDK location using --javahome installer argument.

解决办法如下:
执行命令:sh netbeans-7.0-ml-cpp-linux.sh --javahome /home/zyx/jdk1.6.0_25/jre/


zyx@zyx-desktop:~/Downloads$ sh netbeans-7.0-ml-cpp-linux.sh --javahome /home/zyx/jdk1.6.0_25/jre/

Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...

此处跳出netbeans-7.0-ml-cpp-linux安装向导窗口。安装步骤同xp系统雷同
zyx@zyx-desktop:~/Downloads$

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值