如題:maven打包上傳項(xiàng)目時(shí)報(bào)錯(cuò)mvn deployError occurred during initialization of VMjava/lang/NoClassDefFoundError: java/lang/Object因?yàn)橹靶遁d過jdk,所以看看是不是jdk問題輸入java -version正確打印版本號(hào)λ java -versionjava version "1.8.0_91"Java(TM) SE Runtime Environment (build 1.8.0_91-b15)Java HotSpot(TM) 64-Bit Server VM (build 25.91-b15, mixed mode)輸入java -v就報(bào)錯(cuò)了λ java -vUnrecognized option: -vError: Could not create the Java Virtual Machine.Error: A fatal exception has occurred. Program will exit.求大神解惑~
java -v報(bào)錯(cuò) java -version正確
飲歌長(zhǎng)嘯
2018-07-21 12:19:11