I'm trying to install netbeans and it cannot locate the JDK folder. Things I've tried so far:-
I tried specifying the path in the installer asC:\Program Files\Java\jdk-11.0.1 as well as C:\Program Files\Java . I get an error saying JDK is not in the
folder.
I tried installing from command prompt with netbeans-8.0.2-windows.exe --javahome "C:\\Program Files\Java\jdk-11.0.1". This removes the JDK error but I now get JRE not found error.
So I tried this netbeans-8.0.2-windows.exe --javahome "C:\\Program Files\Java\jre1.8.0_201". Now I get JDK not found error.
My PATH variable is C:\Program Files\Java\jdk-11.0.1 and the JAVA_HOME variable is C:\Program Files\Java\jdk-11.0.1 ; C:\Program Files\Java\jre1.8.0_201
Any help is appreciated. Thanks!