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 100760 - Installer doesn't work with 64-bit JDK
Summary: Installer doesn't work with 64-bit JDK
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: dlipin
URL:
Keywords:
: 103370 104127 104325 105307 106917 107048 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-12 11:27 UTC by Petr Adamek
Modified: 2007-07-10 09:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log with jdk 1.5.0_10-b03 (18.48 KB, text/plain)
2007-04-12 11:29 UTC, Petr Adamek
Details
log with jdk 1.6.0-b105 (18.49 KB, text/plain)
2007-04-12 11:30 UTC, Petr Adamek
Details
log of successful instalation with jre 1.6.0-b105 (1.00 MB, text/plain)
2007-04-12 13:39 UTC, Petr Adamek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Adamek 2007-04-12 11:28:00 UTC
When you try to run installer with 64-bit version of jdk,
java.lang.UnsatisfiedLinkError is thrown. For details see attached log.

The behavior is same with both jdk 6.0 and jdk 5.0, only error message is
different ("wrong ELF class: ELFCLASS32" with jdk 6.0 and "Can't load IA 32-bit
.so on a AMD 64-bit platform" with jdk 5.0).

Workaround is to install 32-bit version of jdk or jre and to run installer with
--javahome <location_of_32-bit_jdk/jre> switch.
Comment 1 Petr Adamek 2007-04-12 11:29:55 UTC
Created attachment 40812 [details]
log with jdk 1.5.0_10-b03
Comment 2 Petr Adamek 2007-04-12 11:30:44 UTC
Created attachment 40813 [details]
log with jdk 1.6.0-b105
Comment 3 dlipin 2007-04-12 11:57:51 UTC
xadamek2,

JDK 64 bit is not supported yet for either of the platforms.
BTW, what does "uname -a" says ?
Comment 4 dlipin 2007-04-12 12:34:18 UTC
xadamek2,

Could you please also attach the similar log on the same system when running on 
the JDK 5 (or 6) 32 bit ?
Comment 5 Petr Adamek 2007-04-12 13:39:57 UTC
Created attachment 40818 [details]
log of successful instalation with jre 1.6.0-b105
Comment 6 Petr Adamek 2007-04-12 13:56:13 UTC
petr@eris:~> uname -a
Linux eris 2.6.18.8-0.1-default #1 SMP Fri Mar 2 13:51:59 UTC 2007 x86_64 x86_64
x86_64 GNU/Linux

If 64-bit JDK is not supported yet, I suggest to add following information to
Troubleshooting chapter of Installation instructions:
* 64-bit JDK/JRE is not supported for running installer yet
* Suggested workaround is to install 32-bit JRE or JDK and use it for
installation with parameter --javahome
* The problem is only with running installer, not with running NetBeans.
Therefore, there is no problem to select 64-bit JDK for running NetBeans during
installation process.
* JRE is sufficient for installation process, but not for running NetBeans (so
you don't need to download whole 32-bit JDK if you have 64-bit JDK already
installed)
Comment 7 Kirill Sorokin 2007-04-12 14:20:36 UTC
Thanks a lot for the suggestiongs. While this issue will soon be fixed, the fix
won't make it into M9. Therefore it should definitely be release noted.
Comment 8 astashkova 2007-04-26 13:51:02 UTC
Documented in the NB 6.0 Preview RNs as follows:

Issue #100760: On Linux, the installer does not work with 64-bit JDK.
Description: When you try to run the installer with 64-bit version of both JDK
5.0 and 6.0, error messages are thrown.
Workaround: Install 32-bit version of JDK or JRE and run the installer with the
--javahome <location_of_32-bit_jdk/jre> switch.
Comment 9 dlipin 2007-05-05 16:45:47 UTC
*** Issue 103370 has been marked as a duplicate of this issue. ***
Comment 10 dlipin 2007-05-07 20:14:19 UTC
Raising the priority since at least 2 users at nbusers@ list have run into the 
same issue.
Comment 11 lewisbloch 2007-05-11 20:13:22 UTC
In response to dlipin: "Raising the priority since at least 2 users at nbusers@
list have run into the same issue," add this user as well.  I get the same
behavior on my 64b version of Fedora Core 6 with JDK 1.6.0_01 64b version.

NB 6.0 M9 installation attempted 2007-05-08.
Comment 12 Kirill Sorokin 2007-05-17 07:02:03 UTC
Way too many similar reports. This issue needs to be made more generic. :)
Comment 13 Kirill Sorokin 2007-05-17 07:02:16 UTC
*** Issue 104127 has been marked as a duplicate of this issue. ***
Comment 14 Kirill Sorokin 2007-05-19 09:32:52 UTC
*** Issue 104325 has been marked as a duplicate of this issue. ***
Comment 15 Kirill Sorokin 2007-05-19 09:34:36 UTC
ifilippova, awegscheider, please let's update the release notes entry for this
issue. The only required change is to remove the references to Linux -- we need
to make it more generic.
Comment 16 Annette Wegscheider 2007-05-21 17:27:05 UTC
Release notes (M9) updated:
Issue #100760: The installer does not work with 64-bit JDK.
Description: When you try to run the installer with 64-bit version of both JDK
5.0 and 6.0, error messages appear.
Workaround: Install the 32-bit version of the JDK or the JRE and run the
installer with the --javahome <location_of_32-bit_jdk/jre> switch.
Updates should be visible here soon:
http://www.netbeans.org/community/releases/60/relnotes.html#known_issues-installer
Comment 17 Kirill Sorokin 2007-06-01 08:29:22 UTC
*** Issue 105307 has been marked as a duplicate of this issue. ***
Comment 18 dlipin 2007-06-16 21:26:22 UTC
*** Issue 106917 has been marked as a duplicate of this issue. ***
Comment 19 dlipin 2007-06-18 12:56:52 UTC
Support for running installer on 64bit JDK under linux x86_64(amd64) has been added.
Comment 20 dlipin 2007-06-18 17:46:06 UTC
*** Issue 107048 has been marked as a duplicate of this issue. ***
Comment 21 athompson 2007-06-20 06:30:32 UTC
this is fixed...
Comment 22 Kirill Sorokin 2007-06-22 17:00:09 UTC
The issue has been fixed for linux/solaris. The fix is still pending for windows and will be committed only after M10,
as it is considered risky. Moving the issue to Beta.
Comment 23 athompson 2007-06-23 15:42:23 UTC
whoever changed the milestone to TBD- you're conceding that netbeans won't install on Vista?
Comment 24 Kirill Sorokin 2007-07-02 10:50:11 UTC
I've added proper handling of the windows platform's 64-bit scenario. AFAIK Dima has already committed the solaris libs
but they will not be loaded. Passing to him.
Comment 25 dlipin 2007-07-02 15:09:13 UTC
Done.