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 48303

Summary: j2se target directory - adding jdk1.5.0 subdirectory
Product: installer Reporter: Petr Blaha <blaha>
Component: JDK bundleAssignee: mslama <mslama>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P2    
Version: 4.x   
Hardware: Sun   
OS: SunOS   
Issue Type: DEFECT Exception Reporter:

Description Petr Blaha 2004-09-01 13:27:52 UTC
Change default installation directory for jdk to
another name (e.g. /opt/java). The jdk will be
installed into directory: /opt/java/jdk1.5.0
instead of expected /opt/java.
Comment 1 _ ttran 2004-09-01 15:13:24 UTC
but only if you're root
Comment 2 Petr Blaha 2004-09-01 15:26:12 UTC
no, I was logged as normal user.
Comment 3 _ ttran 2004-09-01 15:31:57 UTC
if you're a normal, non-root user you don't have write permission to
/opt dir.  The installer shoudn't offer that dir as default.

why you think this is a bug?  And why P2
Comment 4 mslama 2004-09-01 15:34:47 UTC
If you are logged as normal user default dir should be $HOME/jdk1.5.0.
Send me directly what machine you use. Perhaps some configuration problem?
Comment 5 Petr Blaha 2004-09-01 15:59:31 UTC
I'm sorry, directory /opt is wrong example. I installed into writeable
directory /space/user. Installer always add jdk1.5.0 subdirectory to
install JDK path.
Comment 6 mslama 2004-09-02 16:53:24 UTC
JDK installator creates "jdk1.5.0" directory during installation on
Linux/Solaris. Fix moves installed files to parent directory so that
they are placed in desired directory and deletes "jdk1.5.0" directory.

Modified:
/cvs/installer/jdkbundle/scripts/j2se-install.template
new revision: 1.2; previous revision: 1.1
/cvs/installer/jdkbundle/src/org/netbeans/installer/InstallDirSelectionPanel.java
new revision: 1.2; previous revision: 1.1
/cvs/installer/jdkbundle/src/org/netbeans/installer/InstallJ2sdkAction.java
new revision: 1.5; previous revision: 1.4
Comment 7 Petr Blaha 2004-09-03 15:48:23 UTC
Build 200409022120 Verified