“Running a 64-bit JVM is not supported on this platform” with java -d64 option on 64bit linux

亡梦爱人 提交于 2019-12-25 04:45:35

问题


I have a 64 bit linux os:

$ uname -p
x86_64

java -version listed:

java version "1.6.0_43"
Java(TM) SE Runtime Environment (build 1.6.0_43-b01)
Java HotSpot(TM) Server VM (build 20.14-b01, mixed mode)

I am trying to run a 64 bit jvm with 4096 min heap size ( Its a heavy weight app ). When i add -d64 option i get the message

Running a 64-bit JVM is not supported on this platform

With out -d4 option and with heap size 2048 it works fine. But the memory isnt enough so i need to use 64 bit JVM with 4Gigs. Can anyone tell me why its not accepting d64 ?


回答1:


Thanks @Adi Dembark and @nos found the issue. It was indeed a 32 bit jvm. changing to 64 bit fixed it.



来源:https://stackoverflow.com/questions/15827430/running-a-64-bit-jvm-is-not-supported-on-this-platform-with-java-d64-option-o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!