1.jdk的位数:
String jdkBit = System.getProperty("sun.arch.data.model");
System.out.println(jdkBit);
2.系统位数, 如下语句打印: x86
System.out.println(System.getProperty("os.arch"));
时间: 2024-10-27 13:34:43
1.jdk的位数:
String jdkBit = System.getProperty("sun.arch.data.model");
System.out.println(jdkBit);
2.系统位数, 如下语句打印: x86
System.out.println(System.getProperty("os.arch"));