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 48584 - Installer shouldn't install JDK on system where JDK is already installed
Summary: Installer shouldn't install JDK on system where JDK is already installed
Status: CLOSED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: JDK bundle (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords:
: 48592 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-07 13:49 UTC by Petr Blaha
Modified: 2006-03-24 10:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error message from JDK installer (6.94 KB, image/png)
2004-09-07 13:51 UTC, Petr Blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2004-09-07 13:49:51 UTC
Bundle: 200409051800
Install NB/JDK on system where you already have
JDK 1.5.0 installed. Change default JDK path. It
seems, the Install Wizard has successfully
installed NB and JDK 1.5.0. Hovewer JDK isn't
installed, because you can't install same JDK
version to your system twice. 
In netbeans.conf is set parameter netbeans_jdkhome
to new JDK path that hasn't been installed.
Comment 1 Petr Blaha 2004-09-07 13:51:05 UTC
Created attachment 17428 [details]
Error message from JDK installer
Comment 2 _ ttran 2004-09-07 14:01:47 UTC
did the installer successfully install the IDE? 
Comment 3 mslama 2004-09-07 14:02:42 UTC
I suppose it applies only to Windows (all). On Linux/Solaris you can
install JDK anytimes to different dirs. On Windows jdkbundle installer
checks presence of JDK. I will check code.
Comment 4 Petr Blaha 2004-09-07 14:09:42 UTC
IDE is installed successfully, hovewer right netbeans_jdkhome isn't
set.   After installation you can't simple start IDE by click on
desktop icon.
Comment 5 Martin Balin 2004-09-07 14:41:23 UTC
*** Issue 48592 has been marked as a duplicate of this issue. ***
Comment 6 Martin Balin 2004-09-07 14:42:16 UTC
When I tested this I was waiting for installer on 40% of progress 
for about 15 minutes. Then I gave up.
Comment 7 mslama 2004-09-09 12:10:39 UTC
Added new wizard action to check JDK presence on Windows. It also
checks if user is admin or not.

Modified:
/cvs/installer/jdkbundle/linux.xml
new revision: 1.5; previous revision: 1.4
/cvs/installer/jdkbundle/solaris-sparc.xml
new revision: 1.5; previous revision: 1.4
/cvs/installer/jdkbundle/solaris-x86.xml
new revision: 1.5; previous revision: 1.4
/cvs/installer/jdkbundle/windows.xml
new revision: 1.6; previous revision: 1.5
/cvs/installer/jdkbundle/src/org/netbeans/installer/Bundle.properties
new revision: 1.6; previous revision: 1.5
/cvs/installer/jdkbundle/src/org/netbeans/installer/InstallDirSelectionPanel.java

new revision: 1.4; previous revision: 1.3
/cvs/installer/jdkbundle/src/org/netbeans/installer/NbWelcomePanel.java  
new revision: 1.2; previous revision: 1.1

Added:
/cvs/installer/jdkbundle/src/org/netbeans/installer/SetSystemPropertiesAction.java

initial revision: 1.1
Comment 8 Petr Blaha 2004-09-13 09:41:13 UTC
Build 200409121800
Comment 9 mslama 2004-09-14 12:45:31 UTC
There was additional fix in NbWelcomePanel.java applied 2 hours after
first fix.

revision 1.3
date: 2004/09/09 12:40:02;  author: mslama;  state: Exp;  lines: +21 -13
Fix start condition. Admin privileges must be checked only on Windows.
Comment 10 mslama 2004-09-14 14:09:48 UTC
Fix committed to "release40_beta2" branch.

Modified:
/cvs/installer/jdkbundle/linux.xml
new revision: 1.4.4.1; previous revision: 1.4

/cvs/installer/jdkbundle/solaris-sparc.xml
new revision: 1.4.4.1; previous revision: 1.4

/cvs/installer/jdkbundle/solaris-x86.xml
new revision: 1.4.4.1; previous revision: 1.4

/cvs/installer/jdkbundle/windows.xml
new revision: 1.5.4.1; previous revision: 1.5

/cvs/installer/jdkbundle/src/org/netbeans/installer/Bundle.properties
new revision: 1.5.4.1; previous revision: 1.5

/cvs/installer/jdkbundle/src/org/netbeans/installer/InstallDirSelectionPanel.java
 
new revision: 1.3.4.1; previous revision: 1.3

/cvs/installer/jdkbundle/src/org/netbeans/installer/NbWelcomePanel.java  
new revision: 1.1.4.1; previous revision: 1.1

Added:
/cvs/installer/jdkbundle/src/org/netbeans/installer/SetSystemPropertiesAction.java

new revision: 1.1.2.1; previous revision: 1.1