石榴AV,99热国产在线手机精品99,国产乱妇无乱码大黄AA片,免费看片av,女优影音资源,影音先锋AV男人资源

Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object

安裝及配置JDK

一、環(huán)境

Ubuntu 16.04

二、下載地址,注意自己的操作系統(tǒng)版本

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

三、安裝,其實(shí)就是解壓和環(huán)境配置的過(guò)程

1、創(chuàng)建JAVA的目標(biāo)文件夾

sudo mkdir /usr/lib/java

2、解壓剛下載的jdk

$ sudo tar -C /usr/lib/java -xzf jdk-8u101-linux-x64.tar.gz

3、配置環(huán)境變量

$sudo gedit ~/.bashrc

添加以下代碼:

export JAVA_HOME=/usr/lib/java/jdk1.8.0_101 ?

export JRE_HOME=${JAVA_HOME}/jre ?

export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib ?

export PATH=${JAVA_HOME}/bin:$PATH

?四、查看是否安裝配置正確

$java -version

顯示如下則說(shuō)明安裝正確,

java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

五、常見(jiàn)錯(cuò)誤

Q:Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object

A:原因是找不到tools類(lèi),用root權(quán)限進(jìn)入java的目標(biāo)文件夾,執(zhí)行解壓命令

$sudo su

#unpack200 /usr/lib/java/jre/lib/rt.pack /usr/lib/jvm/jre/lib/rt.jar