HOW WE TELL PROGRAMMATICALLY IF I'M RUNNING IN 64-BIT JVM OR 32-BIT JVM
How can I tell if the JVM my application runs in is 32 bit or 64-bit? Specifically, what function or preference do I access to detect this within the program?
System.getProperty("sun.arch.data.model")