其实很简单,就这么一句话,这是JDK的系统属性。
1 |
System.out.println("bit of JVM is "+System.getProperty("sun.arch.data.model"));
|
得到Linux位数的方法
1 |
getconf LONG_BIT |
1 |
System.out.println("bit of JVM is "+System.getProperty("sun.arch.data.model"));
|
1 |
getconf LONG_BIT |
相关文章: