标签:zip bin 加载 policy limit ges local master 图片
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
https://www.oracle.com/technetwork/java/javase/downloads/jce-all-download-5170447.html
tar -xzvf jdk-*.tar.gz
rm -fr jdk-*.tar.gz
mk the jvm dir
sudo mkdir -p /usr/lib/jvm
move the server jre
sudo mv jdk1.8* /usr/lib/jvm/oracle_jdk8
unzip jce_policy-8.zip
mv UnlimitedJCEPolicyJDK8/local_policy.jar /usr/lib/jvm/oracle_jdk8/jre/lib/security/
mv UnlimitedJCEPolicyJDK8/US_export_policy.jar /usr/lib/jvm/oracle_jdk8/jre/lib/security/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/oracle_jdk8/jre/bin/java 2000
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/oracle_jdk8/bin/javac 2000
vi ~/.profile
export JAVA_HOME=/usr/lib/jvm/oracle_jdk8
source ~/.profile
java --version
标签:zip bin 加载 policy limit ges local master 图片
原文地址:https://www.cnblogs.com/caoleiCoding/p/12874907.html