netbeans java exe,NetBeans安装程序无法正确定位Java

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值