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