java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
首先确认环境变量
ARM_HOME=/work/tools/arm/bin
JAVA_HOME=/work/java/jdk/bin
ECLIPSE_HOME=/work/java/eclipse
export PATH=$PATH:$ARM_HOME:$JAVA_HOME:$ECLIPSE_HOME:
检查lib目录下的tools是否是tools.pack格式(即lib/tools.pack)和
jre/lib目录下的rt是否是rt.pack格式(即jre/lib/rt.pack)
若是,则需要分别打包为rt.jar和tools.jar
解决:使用bin目录里面的unpack200工具分别打包
unpack200 rt.pack rt.jar
unpack200 tools.pack tools.jar
java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode)
阅读(4196) | 评论(0) | 转发(1) |