How do I know if Java is running on 32 or 64 bits?

10

Is there any command for me to use where it returns if my java is 32 or 64 bits in the Java language?

Something like System.getProperty("java.version");

Something like that only comes back to me if Java is 32 or 64 bits.

    
asked by anonymous 23.10.2015 / 18:32

1 answer

11
System.getProperty("sun.arch.data.model")

or indirectly

System.getProperty("os.arch");
    
23.10.2015 / 18:35