Incorrect OS bitness detection
See original GitHub issueI am running a 32-bit JVM on a 64-bit Linux machine.
$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode)
$ uname -a
Linux arteam 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
System.getProperty("os.arch")
call returns i386. But my system is 64-bit anyway, regardless of bitness of the JVM. I guess it’s not a very common combination, but some users still use it.
On a 64-bit JVM detection works quite fine.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Detect 64 vs 32 bit OS or Process - Windows CMD - SS64.com
Detect a 64 bit Process ; We can detect this with the PROCESSOR_ARCHITEW6432 variable, ; You may often see incorrect suggestions that testing...
Read more >Win 7 64 bit - Incorrect Operating System Identity
Right-click your Drive icon/ Properties/ Tools/ Error Checking. Try it first by not checking either box (this will run it in a Read-only...
Read more >Detect 32-bit or 64-bit of Windows - c++ - Stack Overflow
I want to detect whether the current Windows OS is 32-bit or 64-bit. How to achieve it using C++? I don't want processor...
Read more >How do I determine if my Windows is 32-bit or 64-bit using a ...
From an elevated command prompt, type wmic os get osarchitecture . The output is pretty obvious, I think - it'll return either "32-bit"...
Read more >32-bit Python on 64-bit Windows reports incorrect architecture
machine returns a misleading value. When running in WOW64, the processor architecture is masked to appear as "x86" when the machine is actually ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ogerardin well thats the pain and gain game of spring boot … perfect to prototype … but in the real …
@ogerardin
I agree, but windows is just one world. On Linux you can’t even start the java 32 bit binary if you are on a 64 bit system, maybe that changed (knowledge from 2016 …).