中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

ubuntu——How to Install Oracle Java JDK8

發布時間:2020-06-25 15:21:06 來源:網絡 閱讀:540 作者:_Mr_Computer_ 欄目:關系型數據庫
  1. Check to see if your Ubuntu Linux operating system architecture is 32-bit or 64-bit, open up a terminal and run the following command below.    

    1. uname -a or file /sbin/init

 Linux caochu-Inspiron-N5110 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Check if you have Java installed on your system. To do this, you will have to run the Java version command from terminal.
  1. Type/Copy/Paste:java -versio

    If you have OpenJDK installed on your system, you have the wrong vendor version of Java installed for this exercise.

  2. sudo apt-get purge openjdk-*
Download the Oracle Java JDK for Linux.
  1. Unpack the compressed Java binaries, in the directory /usr/local/java8

Scroll down to the end of the file using your arrow keys and add the following lines below to the end of your./etc/profile file:
  1.  export JAVA_HOME=/usr/local/java8/jdk1.8.0_73 
     export JRE_HOME=${JAVA_HOME}/jre  
     export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib  
     export PATH=${JAVA_HOME}/bin:$PATH
  2.  source /etc/profile
 Configure default JDK version :
  1.   sudo update-alternatives --install /usr/bin/java  java  /usr/local/java8/jdk1.8.0_73/bin/java      300
     sudo update-alternatives --install /usr/bin/javac javac /usr/local/java8/jdk1.8.0_73/bin/javac    300
     sudo update-alternatives --install /usr/bin/jar   jar   /usr/local/java8/jdk1.8.0_73/bin/jar 300
     sudo update-alternatives --install /usr/bin/javah javah /usr/local/java8/jdk1.8.0_73/bin/javah  300
      sudo update-alternatives --install /usr/bin/javap javap /usr/local/java8/jdk1.8.0_73/bin/javap 300

  2. sudo update-alternatives --config java 

Test
  1. java -version




















向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

新闻| 四会市| 祁连县| 平乡县| 富锦市| 合川市| 麻江县| 万年县| 浮山县| 韶关市| 东乌珠穆沁旗| 慈溪市| 黑龙江省| 紫金县| 漠河县| 东台市| 蕲春县| 莫力| 晋州市| 兖州市| 昌江| 敦煌市| 镇宁| 西华县| 招远市| 沂水县| 临泉县| 盘山县| 哈尔滨市| 苏尼特左旗| 岱山县| 苍山县| 榆树市| 大洼县| 新丰县| 大石桥市| 卓资县| 新津县| 庆安县| 雷波县| 铁力市|