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 41583 - Installation with JDK 1.3.x
Summary: Installation with JDK 1.3.x
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC All
: P1 blocker (vote)
Assignee: issues@installer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-01 12:18 UTC by zikmund
Modified: 2004-04-05 17:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Debug log (installer.jar with parameter -Dis.debug=1 log) (5.38 KB, text/plain)
2004-04-01 12:25 UTC, zikmund
Details
code diff (740 bytes, text/plain)
2004-04-05 17:23 UTC, George Hernandez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2004-04-01 12:18:04 UTC
Build 3.6 RC2 (showstopper)

Install NetBeans on machine with JDK 1.3.1_07 (or
older) only.
When you go to the J2SE Selection Panel, it is
skipped and redirected to the Directory Selection
Panel. As a result you can install NetBeans on a
machine with no valid J2SDK. There's "null"
parameter in the JDKHOME variable in ide.cfg.

REASON:
It is caused by using 1.4 swing method:
javax.swing.JComponent.requestFocusInWindow
in class JDKSelectionPanel, line 206.
Using unsupported method requestFocusInWindow
throws exception which is caught and ignored.

SOLUTION:
1) Exclude 1.3.x JVMs from supported JVM list in
ISMP project.
2) Catch this error and ignore it on a higher
level and/or provide alternative 1.3.x code.

I'd prefer (2), but it depends on fix complexity
and other possible code breaks.
Comment 1 zikmund 2004-04-01 12:25:04 UTC
Created attachment 14235 [details]
Debug log (installer.jar with parameter -Dis.debug=1 log)
Comment 2 George Hernandez 2004-04-02 03:04:46 UTC
Replaced requestFocusInWindow method with requestFocus.
Comment 3 zikmund 2004-04-05 12:54:18 UTC
Verified in "pre RC3" build 200404050850 release36 branch.
Comment 4 George Hernandez 2004-04-05 17:23:02 UTC
Created attachment 14286 [details]
code diff