Tomcat: Error occurred during initialization of VM Unable to load native library

服务器:阿里云

配置:cpu 2G   

--------------------------------------------------------

后面突然遇到这个报错:

Error occurred during initialization of VM Unable to load native library: Can't find dependent libraries。


真的这是我遇到的一个大坑。。。。。太坑了  抱住自己

网上试了很多方法都不行,比如

什么增大那个内存值什么的,不行(1.8好像不支持了)

重新安装,不行

修改tomcat内部的配置文件,失败

------------------------------------------------------

我重装jdk不行

重装tomcat不行

--------------------------------------------------------

然后按照下面的方法:更改tomcat的默认 Java 虚拟内存路径即可:


Tomcat: Error occurred during initialization of VM Unable to load native library_第1张图片


Tomcat: Error occurred during initialization of VM Unable to load native library_第2张图片


注意:tomcat的默认是  与 jdk并列的jre,需要修改为jdk目录下的jre


Tomcat: Error occurred during initialization of VM Unable to load native library_第3张图片


Tomcat: Error occurred during initialization of VM Unable to load native library_第4张图片


转载请注明出处:https://blog.csdn.net/whandwho/article/details/80683759

你可能感兴趣的:(服务器,tomcat,Java,Java,tomcat)