Is there any way to get at Java internal properties, such as sun.arch.data.model , from a command line on windows? I need a command to put in a batch script that will detect the java architecture type: 32-bit or 64-bit .
Is there any way to get at Java internal properties, such as sun.arch.data.model ,
Share
If you are using Sun’s VM (and I would suppose other VMs have similar details in their version information), you can check for the string “64-Bit” in the output of “java -version”: