Java(TM) SE Development Kit 6 successfully installed.
Product Registration is FREE and includes many benefits: * Notification of new versions, patches, and updates * Special offers on Oracle products, services and training * Access to early releases and documentation
Product and system data will be collected. If your configuration supports a browser, the JDK Product Registration form will be presented. If you do not register, none of this information will be saved. You may also register your JDK later by opening the register.html file (located in the JDK installation directory) in a browser.
For more information on what data Registration collects and how it is managed and used, see: http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html Shell How to Install/Update Java (JDK) on Oracle Linux | Gokhan Atil's Ora... http://www.gokhanatil.com/2011/07/how-to-installupdate-java-jdk-on-... 1 of 8 13-Sep-14 11:56 PM Is it done? Lets check it: As you see, although we installed the latest Java, we still use the old one. Because of the incompatibilities between Java versions, when you install/update Java, it does not overwrite the previous versions. Instead, all installed Java versions are available to use. At this point, alternatives system takes into action. The alternatives system is a reimplementation of the Debian alternatives system. It maintains symbolic links determining default commands. Our java is installed under /usr/java/jdk1.6.0_26 (so the path of java binary is /usr/java/jdk1.6.0_26/bin/java). Ill add this as the default for Java: Here are the arguments: install tells that well add a new alternative /usr/bin/java is the default path for Java java is the name of the software /usr/java/jdk1.6.0_26/bin/java is the path of latest java we installed 16026 is the priority, I recommend you to give the exact version number so when you install a newer version and enter its version as priority, itll be selected as the default one (as long as mode is auto). Lets the alternatives of Java: Lets check the version of java: You can also change the alternative of Java manually: Type the number of the alernative you want to use and hit enter key. Related Posts 1 2 3 4 5 6 7 8 java -version
java version "1.4.2" gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-50)
Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 1 2 /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_26/bin/java 16026 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 /usr/sbin/alternatives --display java
java - status is auto. link currently points to /usr/java/jdk1.6.0_26/bin/java /usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1420 slave keytool: /usr/lib/jvm/jre-1.4.2-gcj/bin/keytool slave rmiregistry: /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry slave jre_exports: /usr/lib/jvm-exports/jre-1.4.2-gcj slave jre: /usr/lib/jvm/jre-1.4.2-gcj /usr/java/jdk1.6.0_26/bin/java - priority 16026 slave keytool: (null) slave rmiregistry: (null) slave jre_exports: (null) slave jre: (null) Current `best' version is /usr/java/jdk1.6.0_26/bin/java. 1 2 3 4 5 java -version
Enter to keep the current selection[+], or type selection number: Scheme Shell Shell Shell Shell How to Install/Update Java (JDK) on Oracle Linux | Gokhan Atil's Ora... http://www.gokhanatil.com/2011/07/how-to-installupdate-java-jdk-on-... 2 of 8 13-Sep-14 11:56 PM How to Install Oracle Grid Control 11g (Step by Step Guide) Oracle Berkeley DB Java Edition How to Install Oracle Linux 5.6 (Step by Step Guide) Oracle Linux 6 Has Been Released How to Develop Java Stored Procedures 23 Responses to How to Install/Update Java (JDK) on Oracle Linux Patricia says: May 16, 2012 at 00:36 Thanx from Spain!!! Your post has saved me. reply Gokhan Atil says: May 17, 2012 at 10:09 Im glad to hear that it helped you. reply 1. David says: December 4, 2012 at 01:23 That worked a treat, thank you. reply 2. Kerry says: December 18, 2012 at 15:10 Hi, I am running Oracle 11g R2.0.3 on a RedHat 5.8 server. The system java /usr/bin/java is the latest RedHat release of 1.6. There is another version of java located in $ORACLE_HOME/jdk/bin which is version 1.5.0_30. How do I update this to the latest? Thank you, Kerry reply Gokhan Atil says: December 19, 2012 at 13:21 Hi Kerry, as I see its the JDK which is used only by Oracle Database management applications. I dont see any reason to update it, and I recommend you to not to update it. reply 3. SoCRaT says: January 8, 2013 at 12:40 Youre a life saver, thanks a lot reply Gokhan Atil says: January 10, 2013 at 20:02 You are welcome! 4. How to Install/Update Java (JDK) on Oracle Linux | Gokhan Atil's Ora... http://www.gokhanatil.com/2011/07/how-to-installupdate-java-jdk-on-... 3 of 8 13-Sep-14 11:56 PM reply ibtissam says: March 14, 2013 at 17:37 Hi ! I try to download JDK using this command : wget http://edelivery.oracle.com/otn-pub/linux-i586.rpm But i get this answer : 2013-03-14 15:50:30 http://edelivery.oracle.com/otn-pub/linux-i586.rpm Connecting to 138.21.89.192:3128 connected. Proxy request sent, awaiting response 302 Found Location: https://edelivery.oracle.com/otn-publinux-i586.rpm [following] 2013-03-14 15:50:30 https://edelivery.oracle.com/otn-publinux-i586.rpm Resolving edelivery.oracle.com failed: Name or service not known. wget: unable to resolve host address `edelivery.oracle.com wget http://www.google.for work . Can You help me please? reply Gokhan Atil says: March 15, 2013 at 15:58 It looks like a DNS problem. You may try to download it on your PC and then transfer the RPM file to the server. reply ibtissam says: March 18, 2013 at 10:23 it was a problem of certificate on the oracle website ( you have to accept the conditions of the certificate before starting the download ). THank you for your answer, i sent my file using FTP . reply 5. awreneau says: March 20, 2013 at 18:08 Great doc, helped me clear a hurdle. Shared it w/ my team. Many thanks. reply Gokhan Atil says: March 22, 2013 at 14:37 You are welcome. Im glad to hear that it helps. reply 6. hyp says: May 26, 2013 at 15:15 stadm ben nokia asha iin uygulama yazmak istiyorum fakat asha sdk sn yklememe ramen jdk 7 update 21 ve 17 yi yklememi istedi. ardndan bunlarda ykledim fakat hala hata devam ediyor. rica etsem nedenini aklayabilir misiniz? (ingilizcem pek yok ). reply Gokhan Atil says: June 2, 2013 at 23:24 7. How to Install/Update Java (JDK) on Oracle Linux | Gokhan Atil's Ora... http://www.gokhanatil.com/2011/07/how-to-installupdate-java-jdk-on-... 4 of 8 13-Sep-14 11:56 PM Hyp, ben sadece amatr olarak Java programlama ile urayorum. Nokia Ashaya gz attm kadaryla Java ME istiyor. Onu ykledin mi? http://www.oracle.com/technetwork/java/javame/index.html reply Erin says: July 17, 2013 at 02:02 Hi, I am someone who only knows the ABCs of the modern computer. I am attempting to delete Java development kit 6 update 15 and every time I do this a box pops up asking me if I would like to install not uninstall and I of course decline being from an unkown source. I simply would just like to delete it. My computer is overheating and I am about to download photoshop on this computer so I am trying to get rid of programs I do not need. If you think you can really help me with this I would be as forward to give my phone number if you are interested in helping. I am about to embark on a few business ventures and need a quality computer to run from. Erin Fitzgerald California, USA reply 8. David Scholler says: August 21, 2013 at 19:22 Gokhan, Your comment Hi Kerry, as I see its the JDK which is used only by Oracle Database management applications. I dont see any reason to update it, and I recommend you to not to update it. The only problem with this is security scans are flaging this as not being updated, so we need to update this. I was wondering a way to update this java being oracle isnt using the system Java that is 1.7.0_25? Thanks reply Gokhan Atil says: August 29, 2013 at 11:00 David, I see what you mean but if you update this Java, oracle tools (using that java) may stop working. reply 9. Rathna says: March 21, 2014 at 05:08 hi am using Linux 4 Update 8 and i have installed jdk 1.7 on my previous version 1.4 but when i type #java -version showing [root@gdqas java]# java -version Error: dl failure on line 863 Error: failed /usr/java/jdk1.7.0_51/jre/lib/i386/server/libjvm.so, because /lib/tls/libc.so.6: version `GLIBC_2.4 not found (required by /usr/java /jdk1.7.0_51/jre/lib/i386/server/libjvm.so) so i want to uninstall 1.7 and go for 1.6. how to uninstall 1.7 please guide me Thanks reply 10. Jos Nijhoff says: April 3, 2014 at 13:04 11. How to Install/Update Java (JDK) on Oracle Linux | Gokhan Atil's Ora... http://www.gokhanatil.com/2011/07/how-to-installupdate-java-jdk-on-... 5 of 8 13-Sep-14 11:56 PM Thanks Gokhan, Not so complicated if you know it, but still very handy and useful to know! reply Gangireddy says: May 28, 2014 at 07:57 Here the 1.6.0_26 related slaves are seems to be null , how we can we override these values to java 1.4.2 values ? /usr/sbin/alternativesdisplay java java-status isauto. linkcurrently points to/usr/java/jdk1.6.0_26/bin/java /usr/lib/jvm/jre-1.4.2-gcj/bin/java-priority1420 slave keytool:/usr/lib/jvm/jre-1.4.2-gcj/bin/keytool slave rmiregistry:/usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry slave jre_exports:/usr/lib/jvm-exports/jre-1.4.2-gcj slave jre:/usr/lib/jvm/jre-1.4.2-gcj /usr/java/jdk1.6.0_26/bin/java-priority16026 slave keytool:(null) slave rmiregistry:(null) slave jre_exports:(null) slave jre:(null) Current`bestversion is/usr/java/jdk1.6.0_26/bin/java. reply 12. ganesh says: July 3, 2014 at 09:21 Hi sir i need ur help when i installing grid control on i got this error please give me reply OMS configured failed what could be the reason reply 13. rocky says: August 22, 2014 at 15:26 Hi I have one question I have Installed latest java-version [oracle@localhost ~]$ java -version java version 1.6.0_45 Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode, sharing) But when i am applying opatch its giving me OPatch 12.1.0.1.4 requires JDK 1.6 or later The JDK version at /oracle/product/11.2.0/db_1/jdk is 1.5.0_17 OPatch returns with error code = 1 Can you please suggest,why i am unable to check opatch lsinventory. reply Gokhan Atil says: August 26, 2014 at 10:50 Are you sure you use the correct Opatch for your Oracle Home? It seems the version of your oracle database is 11gR2 but you run Opatch 12c. You need to use the latest version of Opatch for 11gR2. By the way, Opatch will try to use the java shipped in your Oracle home unless you say explicitly to use another one, using parameter -jdk (or -jre) reply 14. How to Install/Update Java (JDK) on Oracle Linux | Gokhan Atil's Ora... http://www.gokhanatil.com/2011/07/how-to-installupdate-java-jdk-on-... 6 of 8 13-Sep-14 11:56 PM Leave a Reply Your email address will not be published. Required fields are marked * Name * Email * Website You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url=""> About Me Follow @gokhanatil 1,158 followers Blogroll Kevin Closson p How to Install/Update Java (JDK) on Oracle Linux | Gokhan Atil's Ora... http://www.gokhanatil.com/2011/07/how-to-installupdate-java-jdk-on-... 7 of 8 13-Sep-14 11:56 PM Julian Dontcheff Leighton Nelson Bertrand Drouvot Zekeriya Beirolu Talip Hakan zturk Orhan Byklolu Emre Baransel Gne Erol Archives
Statistics Copyright 2008-2014 Gokhan Atil. All rights reserved. How to Install/Update Java (JDK) on Oracle Linux | Gokhan Atil's Ora... http://www.gokhanatil.com/2011/07/how-to-installupdate-java-jdk-on-... 8 of 8 13-Sep-14 11:56 PM