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.

Bug 235954

Summary: NetBeans should run using the JDK specified by JAVA_HOME (if set)
Product: platform Reporter: athompson <athompson>
Component: Launchers&CLIAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: normal CC: mmirilovic
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Mac OS X   
Issue Type: ENHANCEMENT Exception Reporter:

Description athompson 2013-09-13 19:45:39 UTC
Currently, Netbeans defaults to simply running with the highest JDK installed. This is not always the best choice since the highest JDK installed may be a buggy development build. NetBeans should prefer running with the JDK specified by the "JAVA_HOME" environment variable, if set. This way, users can avoid having to manually change the "netbeans.conf" file every time they install a new version of NetBeans--something few users know how to do.

A potential issue is if the JDK_HOME path is invalid. NetBeans should not fail silently in that case.