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.
Product Version = NetBeans IDE 7.4 Beta (Build 201307092200) Operating System = Linux version 3.5.0-17-generic running on amd64 Java; VM; Vendor = 1.7.0_21 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01 Steps to Reproduce: 1. Remove JAVA_HOME variable from your environment settings. 2. Download Netbeans 7.4 JavaSE version and install it by giving runtime jdkhome parameter: ./netbeans --jdkhome <<PATH_TO_JAVA_HOME>> 3. After successful installation, start the IDE and go to Tools -> Java Platforms. Notice that there is no default JDK added and neither we can add a new platform by clicking "Add Platform" button. Clicking the "Add Platform" button doesn't throw any error either. Workaround: Uninstall the IDE and install it again by setting the JAVA_HOME prior to starting the installation. This will make sure that the default platform manager is getting set in the IDE. Expected: Default JDK should get set no matter how the JDK parameter is passed during the installation. Also, the platform manager should show some error message if it can't add a platform for whatsoever reason.
(In reply to comment #0) > Product Version = NetBeans IDE 7.4 Beta (Build 201307092200) > Operating System = Linux version 3.5.0-17-generic running on amd64 > Java; VM; Vendor = 1.7.0_21 > Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01 > > Steps to Reproduce: > > 1. Remove JAVA_HOME variable from your environment settings. > 2. Download Netbeans 7.4 JavaSE version and install it by giving runtime > jdkhome parameter: ./netbeans --jdkhome <<PATH_TO_JAVA_HOME>> Do you mean ./netbeans-7.4beta-javase-linux.sh --javahome <your-jdk> ? netbeans-7.4beta-javase-linux.sh is the installer for 7.4 Beta (Java SE distro for linux) > 3. After successful installation, start the IDE and go to Tools -> Java Please, attach the install log from ~/.nbi/log (choose the log of particular installation by given timestamp) An another question: Does <<PATH_TO_JAVA_HOME>> link to JDK home or JRE home? Please, could you be more specific in steps for reproduce? Thanks > Platforms. Notice that there is no default JDK added and neither we can add a > new platform by clicking "Add Platform" button. Clicking the "Add Platform" > button doesn't throw any error either. > > Workaround: Uninstall the IDE and install it again by setting the JAVA_HOME > prior to starting the installation. This will make sure that the default > platform manager is getting set in the IDE. > > Expected: Default JDK should get set no matter how the JDK parameter is passed > during the installation. Also, the platform manager should show some error > message if it can't add a platform for whatsoever reason.
I tried to reproduce according to your description, but everything worked as it should. The installer log is necessary, maybe the IDE log could be useful. Thanks