This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have several Java installations on my machine, including 1.5.0_02, 1.5.0_04 and 1.6.0. At the moment, NetBeans is using 1.5.0_02 and I'd like to to change to using 1.5.0_04. I've tried to modify this via the Tools/java Platform Manager, but it seems to provide a read only view of the available platforms. I also tried following the online docs, but they ask me to select a 'library' tab in my project properties dialog which no longer seems to be part of NetBeans: >Once you have registered a JDK, you can configure a standard project to use >that JDK for compilation, execution, and debugging. Go to the project's Project >Properties dialog box, select the Libraries node, and choose the appropriate >JDK in the Java Platform combo box. Any ideas how I can change this without reinstalling NetBeans? Mark McKay http://www.kitfox.com
If you want to change the JVM the IDE is running on you need to either pass --jdkhome=<jdk_installation> or you can modify property netbeans_jdkhome in netbeans.conf file in etc folder in your IDE installation. If you want to run your project with different JDK than default you need to register the JDK in your IDE by Tools | Options | Java Platform Manager and then you assign the platform to the project in its Properties dialog under node Libraries.
Feel free to reopen, if the hint did not solve your problem
It isn't very convenient to have to update the netbeans.conf file manually. Could you add a "Make Default" button to the IDE's Java Platform Manager dialog so we can change the default platform from within the IDE itself? This button would just update the netbeans_jdkhome value defined in etc/netbeans.conf to the Platform Folder of the selected platform, and it would only take effect after restarting the IDE.
*** Bug 161446 has been marked as a duplicate of this bug. ***
*** Bug 231581 has been marked as a duplicate of this bug. ***
*** Bug 234324 has been marked as a duplicate of this bug. ***
Requires some new naming conventions. The Default platform in NB is a special platform on which the IDE runs, the build-impl.xml differs to build-impl.xml for non default platform. The new project (at least Ant) is not created with default platform but with last used platform. We may add something like "preferred" platform which overrides the last used behaviour.