I'm trying to install the NetBeans "all" package, and, I'm pretty sure I already have Java SE Development Kit installed, however, it's not locating it properly, it comes with an error.
Java SE Development Kit (JDK) was not found on this computer
So I ran the CMD and typed:
netbeans-7.1.3-windows.exe --javahome "C:\Program Files\Java\jdk1.7.0_25"
As I checked, I was in the right directory (E:\Mark\Downloads) where the setup file of netbeans is supposed to be. After pressing ENTER, it did locate JDK, however it would not locate JRE and came up with this error.
Java Runtime Environment (JRE) was not found
There is no JRE at the specified location C:\Program Files\Java\jdk1.7.0_25
So I tried installing the JDK+NetBeans Bundle by Oracle [x86 (32-bit) for Windows (I'm running a 32-bit Windows XP SP3 so it should have worked)] but it says that it's not compatible with my current platform. I also tried --jdkhome but it didn't seem to work at all. Please, this has been going on for two days.
The exe seems to be a wrapper for a jar installer. you can extract the jar installer and run that.
.\netbeans-8.2-javase-windows.exe --extract netbeans
java -jar netbeans\bundle.jar
'netbeans' in the above is the name of the folder you want the bundle.jar extracted to it could be anything.
I had a similar error message and couldn't get it to work with the --javahome option but running the jar worked fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With