Chinaunix首页 | 论坛 | 博客
  • 博客访问: 101975113
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-05-11 16:42:10

作者: yashu  出自:
在终端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...

安装向导窗口正常跳出。
阅读(355) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~