Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 143434 - Provide way to get OS mode - 32bit or 64 bit
Provide way to get OS mode - 32bit or 64 bit
Status: NEW
Product: installer
Classification: Unclassified
Component: NBI
6.x
All All
: P3 (vote)
: TBD
Assigned To: Libor Fischmeistr
issues@installer
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-11 12:06 UTC by dlipin
Modified: 2014-02-10 14:15 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo