Error occurred during initialization of VM java/lang/NoClassDefFoundError
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error occurred during initialization of VM java/lang/NoClassDefFoundError相关的知识,希望对你有一定的参考价值。
因工作需要,这两天一直在RedHat Linux下配置Tomcat6。在手动安装JDK并配置完环境变量后,报出很奇怪的问题:
Error occurred during initialization of VM
java/lang/NoClassDefFounction...
出现此问题先检查环境变量配置是否正确
如果没问题就看一下lib和jre/lib中的rt.pack、tools.pack如果发现这两个文件的话,就是因为他们没有解压我们只需要把他们解压成rt.jar和tools.jar就一切OK了
如:
Java代码
unpack200 rt.pack rt.jar
unpack200 rt.pack rt.jar Java代码
unpack200 tools.pack tools.jar
以上是关于Error occurred during initialization of VM java/lang/NoClassDefFoundError的主要内容,如果未能解决你的问题,请参考以下文章
!MESSAGE Error occurred during status handling
解决ubuntu下error occurred during the signature verification
an error occurred during the file system check错误的解决
TestNG运作报错An interanl error occurred during:"Launching first"
用Eclipse运行Java文件报错Error occurred during initialization of boot layer
Error occurred during initialization of VM java/lang/NoClassDefFoundError