Invalid jdkhome specified prompt when NetBeans starts

Source: Internet
Author: User
Tags netbeans

The following text appears in the execution of NetBeans:

Invalid jdkhome specified
Cannot locate java installation in specifired jdkhome:
C:\Program Files\Java\jdk1.6.0_26
Do you want to try to use default version ?

NetBeans can be executed after you click Yes, but every time you start NetBeans, you'll be asked.

This is because the JDK used by NetBeans no longer exists.

Since the upgrade of the JDK version is also handy to remove the old version

And NetBeans has its own memory of the path to the JDK that was originally used.

So you can fix it manually.

Please go to the installation directory of NetBeans

Enter the etc/directory

Open the Netbeans.conf profile with the text editor to find the following paragraphs:

# Default location of JDK, can be overridden by using --jdkhome 
:
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_26"

Just modify the Netbeans_jdkhome setting to assign it to the correct JDK directory.

Invalid jdkhome specified prompt when NetBeans starts

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.