IDEA 中:Can’t load this .dll (machine code=0x0)
IDEA运行时错误:
IDEA 中:Error occurred during initialization of VM
Unable to load native library: Can’t load this .dll (machine code=0x0) on a AMD 64-bit platform
原因:项目JDK版本与module版本不一致。解决步骤:
1、查看项目JDK版本,File->Project Structre->SDKs,如图为1.8:
2、修改项目module的JDK版本,如图所示,与项目版本一致,点击appley保存即可:
3、运行OK!
总结:java运行与JVM相关的错误,可从JDK入手!