Oracle Linux JRE Study
Oracle Linux 6 U3 comes with Open-JDK 1.6 and 1.7, 1.7 is the default jvm.
java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (rhel-2.4.3.2.0.1.el6_4-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
OpenJDK Runtime Environment (rhel-2.4.3.2.0.1.el6_4-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
Both open-JDK 1.6 and 1.7 are installed under: /usr/lib/jvm/
Oracle Linux uses "alternatives" to manage soft links.
alternatives --config java --Select a default from all installed jre
alternatives --display java
To install JRE 1.6.0_4 64bit:
1. Download rpm.bin from www.java.com
2. Login as root
3. chmod +x jre-6u45-linux-x64-rpm.bi
4. ./jre-6u45-linux-x64-rpm.bin
By default, Oracle JRE is installed in /usr/java/
5. Install with alternatives --install command
alternatives --install /usr/bin/java java /usr/java/jre1.6.0_45/bin/java 20000
alternatives --install /usr/bin/javaws javaws /usr/java/jre1.6.0_45/bin/javaws 20000
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.6.0_45/lib/amd64/libnpjp2.so 20000
alternatives --config java --Select newly installed jre
alternatives --config javaws --Select newly installed jre
6. Change user to oracle, and set $JAVA_HOME in your .profile.
JAVA_HOME=/usr/java/jre1.6.0_45/; export JAVA_HOME
source ~/.bash_profile
7. Verify
java -version
javaws
echo $JAVA_HOME
Open firefox(64 bit) and type "about:plugins" in the address bar.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/638844/viewspace-774922/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How to Study OracleOracle
- linux find command studyLinux
- oracle JRE issue using runInstallerOracle
- Oracle client安裝the jre is 0故障處理Oracleclient
- CSS Variable StudyCSS
- RCE_STUDY
- linux下安裝jre執行環境Linux
- App Extension Study 1APP
- JDK與JREJDK
- JDK和JREJDK
- Stability Study with SAP Quality Management
- Study for Go ! Chapter two - ExpressionGoAPTExpress
- Learn 和 Study 的區別
- Git study Day02 分支Git
- activiti-study 整合 學習
- Start Study MSSQL 2005SQL
- JRE與JDK簡介JDK
- golang programming language study methods websocketGolangWeb
- D3 JS study notesJS
- Git study Day02 標籤Git
- Google Study Jams活動正式開啟Go
- caffe study - 資料結構(1)資料結構
- Linux Socket C語言網路程式設計:Poll Socket [code from GitHub, for study]LinuxC語言程式設計Github
- Linux Socket C語言網路程式設計:Epoll Socket [code from GitHub, for study]LinuxC語言程式設計Github
- JDK和JRE的區別 .JDK
- JDK JRE JVM 的區別JDKJVM
- jdk和jre的區別JDK
- JRE 與 JVM 的關係JVM
- jdk與jre的區別JDK
- jre 和 jdk的關係JDK
- Linux Socket C語言網路程式設計:Pthread Socket [code from GitHub, for study]LinuxC語言程式設計threadGithub
- 面試官:伺服器安裝JDK還是JRE?可以只安裝JRE嗎?面試伺服器JDK
- Study Blazor .NET(四)資料繫結Blazor
- Vue SSR 從入門到 Case StudyVue
- A study of Inline view and analytic functioninlineViewFunction
- 安裝ORACLE 時報錯 /jre/1.4.2/lib/i386/libawt.so:Oracle
- JDK裡面的JRE是什麼JDK
- JDK、JRE、J2SE SDKJDK