How to specify which JRE to use in Netbeans?

I have two JREs in my system. One of them is 32-bit and the other is 64-bit. In Eclipse, I can configure both options and choose which one to use when starting my application.

I am wondering if I can do the same in Netbeans. I tried going to Project Properties, Libraries, and then tried setting up a new JRE there using Manage Platforms, but it does not accept my JRE directory. How do I proceed?

Remember that I'm talking about JRE, not JDK;)

EDIT: I managed to get it working by downloading the new 32-bit JDK and selecting its directory. I still could not get it to accept the JRE directory.

+3
java netbeans
source share
1 answer

Regardless of whether you can only run Netbeans with the JRE, it depends on which package you downloaded. In Netbeans 7, only C / C ++ and PHP packages can be run with the JRE.

Older versions of Netbeans include more languages ​​under this JRE probe, but the principle is the same.

The JDK contains JRE plus tools for debugging and compiling code, so if you are doing anything in Java other than just running the IDE, netbeans depends on the JDK.

+2
source share

All Articles