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 - Provide way to get OS mode - 32bit or 64 bit
Summary: Provide way to get OS mode - 32bit or 64 bit
Status: NEW
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-11 12:06 UTC by dlipin
Modified: 2014-02-10 14:15 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.