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)
阅读(2737) | 评论(0) | 转发(0) |