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 232862 - Default Java Platform not added when the IDE is installed using --jdkhome parameter
Summary: Default Java Platform not added when the IDE is installed using --jdkhome par...
Status: RESOLVED INCOMPLETE
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-17 05:38 UTC by deepak.chandrasekaran
Modified: 2013-07-17 07:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description deepak.chandrasekaran 2013-07-17 05:38:05 UTC
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.
Comment 1 Jiri Rechtacek 2013-07-17 06:35:42 UTC
(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.
Comment 2 Libor Fischmeistr 2013-07-17 07:08:49 UTC
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