2012年10月16日

Bitness of the JVM: 32 or 64

现在64位的机器越来越普及,JAVA虚拟机JVM与应用程序不匹配的话,无法正常运行,例如会出现下面的错误信息。

    This Java instance does not support a 64-bit JVM

在这儿记录下JAVA虚拟机JVM的判断方法。

 

  • System.getProperty("sun.arch.data.model")
  • java -d64 -version

没有评论:

发表评论