如何写出优雅的代码?

everything is null
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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

Posted on 2009-12-11 21:49  灰色  阅读(921)  评论(0)    收藏  举报

在ubuntu上安装netbeans提示这个错误,就是说找不到JDK6

ibmer@ubuntu:~/software$ sh netbeans-6.7-ml-java-linux.sh

Configuring the installer...
Searching for 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 installe在r again.
You can specify valid JDK location using --javahome installer argument.

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

 

解决的办法就像返回的错误提示里说的,指定java安装的地址:

ibmer@ubuntu:~/software$ sh netbeans-6.7-ml-java-linux.sh --javahome jdk1.6.0_17/jre

搞定