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 48378 - windows launcher does not work with Windows (AMD) 64-bit JDK
Summary: windows launcher does not work with Windows (AMD) 64-bit JDK
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-02 14:50 UTC by _ ttran
Modified: 2008-12-22 17:51 UTC (History)
5 users (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 _ ttran 2004-09-02 14:50:16 UTC
it fails with "cannot load jvm.dll"
Comment 1 _ ttran 2004-09-02 14:55:47 UTC
well, it must fail bcs nbexex.exe is a 32-bit process which tries to
load 64-bit jvm.dll.  I'll rewrite this part of nbexec to rather spawn
a separate java.exe process instead.  Quoting hell ahead :-(
Comment 2 _ ttran 2004-09-02 15:58:11 UTC
fixed
Comment 3 Jesse Glick 2004-09-02 16:11:56 UTC
FIXED?
Comment 4 _ ttran 2004-09-02 17:22:58 UTC
yes
Comment 5 cezariusz 2004-09-03 14:14:29 UTC
Oh great "fix", now it doesn't start on plain 32-bit intel PIII. See 
issue 48457.
Comment 6 Marian Mirilovic 2004-09-03 14:16:12 UTC
it's already filed as issue 48441 :
"Can't run IDE if JDK is in directory with space"
Comment 7 _ ttran 2004-09-03 14:22:08 UTC
this one is fixed.  Keep it so.

The regression will be fixed shortly
Comment 8 cezariusz 2004-09-04 09:16:41 UTC
What's an advantage of spawning java.exe instead of loading jvm.dll 
in pure 32-bit environment?
I know there's no choice with 64-bit JDK, but with plain 32-bit JDK 
I prefer to see distinct nbexe.exe on the process list than multiple 
java.exe processes comming from various tools.
Comment 9 Jesse Glick 2004-09-04 15:35:01 UTC
Perhaps easier to keep the former logic and just have distinct 32-bit
and 64-bit versions?
Comment 10 _ ttran 2004-09-04 16:43:04 UTC
Cezariusz: personal preference aside, do you have a real use case to
support not spawning a separate java.exe process?

Jesse: the former logic is problematic in itself, fragile.  It has to
hardwire the places of jvm.dll.  It's also the reason why jrockit
doesn't work.  Secondly it's impossible to have one .exe to support
both 32bit and 64 jvm.dll.  Better to leave it to java.exe which is
kept in sync with whatever jvm they ship.  The old logic in
netbeans.exe is in fact stolen from java.exe.  Whenever the java.exe
changes we'd have to change as well
Comment 11 cezariusz 2004-09-04 19:01:06 UTC
The only reason I prefer in-process dll is to make memory usage 
monitoring easier. When you have several java.exe processes it's 
inconvenient to check which one belongs to NetBeans.
I'm not familiar with memory usage issues regarding both methods.
Comment 12 Jaromir Uhrik 2005-07-14 16:19:24 UTC
Verified.