Solve the problem that JDK cannot be found when installing netbeans

Source: Internet
Author: User
Tags netbeans

 

In the terminal cd to netbeans download directory, enter./netbeans-6.1-javaee-linux.sh, there is a jdk error message not found:

Installing ing 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

JDK 5 and JDK 6 have been installed in Ubuntu. Why can't one be found? Is there a conflict between the two installed on netbeans, so that none of netbeans can be found, or you do not know which jdk to use.

Fortunately, the message "-- javahome installation parameter" is used to specify the JDK installation location.

Enter./netbeans-6.1-javaee-linux.sh -- javahome/usr/lib/j2sdk1.6-sun

Installing ing installer...

Search JVM on the system...

Extracting installation data...

Running installer wizard...

The Installation Wizard window jumps out normally.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.