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 143434

Summary: Provide way to get OS mode - 32bit or 64 bit
Product: installer Reporter: dlipin <dlipin>
Component: NBIAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description dlipin 2008-08-11 12:06:01 UTC
First check java bitness : isCurrentJava64Bit();

If it returns false, then do system-dependent checks.

Windows: 
IsWow64Process();

Linux:
'uname -m' == (x86_64, amd64, ppc64...)
Alternative : 'uname -i', 'umame -p', 'getconf LONG_BIT'

Solaris i386:
'isainfo -k' == amd64

Solaris sparc (64bit):
'isainfo -k' == sparcv9

Mac OS X:
no known way yet.
Comment 1 dlipin 2008-08-24 18:09:55 UTC
AIX: 'getconf KERNEL_BITMODE' (returns 64, not yet checked on 32bit systems)
Comment 2 dlipin 2008-09-01 16:58:28 UTC
HP-UX: 'getconf KERNEL_BITS' (returns 64)
Comment 3 Jiri Rechtacek 2012-10-07 12:58:43 UTC
Assigned to new owner.