How can I tell if I’m running in 64-bit JVM or 32-bit JVM (from within a program)?
For certain versions of Java, you can check the bitness of the JVM from the command line with the flags -d32 and -d64. $ java -help … -d32 use a 32-bit data model if available -d64 use a 64-bit data model if available To check for a 64-bit JVM, run: $ java -d64 -version If … Read more