X

Oracle Linux, virtualization , Enterprise and Cloud Management Cloud technology musings

  • April 8, 2014

Easy access to Java SE 7 on Oracle Linux

In order to make it very easy to install Java SE 7 on Oracle Linux, we added a Java channel on ULN (http://linux.oracle.com). Here is a brief description of how to enable the channel and install Java on your system.

Enable the Java SE 7 ULN channel for Oracle Linux 6

- Start with a server or desktop installed with Oracle Linux 6 and registered with ULN (http://linux.oracle.com) for updates

This is typically using uln_register on your system.

- Log into ULN, go to the Systems tab for your server/desktop and click on Manage Subscriptions

-> Ensure your system is registered to the "Oracle Linux 6 Add ons (x86_64)" channel (it should appear in the 'Subscribed channels' list)

if your system is not registered with the above channel, add it :

-> Click on "Oracle Linux 6 Add ons (x86_64)" in the Available Channels tab and click on the right arrow to move it to Subscribed channels.
-> Click on Save Subscriptions

- In order to register with the 'Java SE 7' channel, you first have to install a yum plugin to enable access to channels with licenses

# yum install yum-plugin-ulninfo
Loaded plugins: rhnplugin
This system is receiving updates from ULN.
ol6_x86_64_addons | 1.2 kB 00:00
ol6_x86_64_addons/primary | 44 kB 00:00
ol6_x86_64_addons 177/177
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yum-plugin-ulninfo.noarch 0:0.2-9.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
yum-plugin-ulninfo noarch 0.2-9.el6 ol6_x86_64_addons 13 k
Transaction Summary
========================================================================================================================
Install 1 Package(s)
Total download size: 13 k
Installed size: 23 k
Is this ok [y/N]: y
Downloading Packages:
yum-plugin-ulninfo-0.2-9.el6.noarch.rpm | 13 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : yum-plugin-ulninfo-0.2-9.el6.noarch 1/1
Verifying : yum-plugin-ulninfo-0.2-9.el6.noarch 1/1
Installed:
yum-plugin-ulninfo.noarch 0:0.2-9.el6
Complete!

- In future versions of Oracle Linux 6, this RPM will become part of the base channel and at that point you will no longer need to register with the Add ons channel to install yum-plugin-ulninfo

- Add the Java SE 7 channel subscription to your system in ULN

-> Click on "Java SE 7 for Oracle Linux 6 (x86_64) (Public)" in the Available Channels tab and click on the right arrow to move it to Subscribed channels

-> Click on Save Subscriptions

-> A popup will appear with the EULA for Java SE 7, click on Accept or Decline

- Now your system has access to the Java SE 7 channel. You can verify this by executing :

# yum repolist
Loaded plugins: rhnplugin, ulninfo
This system is receiving updates from ULN.
ol6_x86_64_JavaSE7_public:
By downloading the Java software, you acknowledge that your use of the Java software is
subject to the Oracle Binary Code License Agreement for the Java SE Platform Products and
JavaFX (which you acknowledge you have read and agree to) available
at http://www.java.com/license.
ol6_x86_64_JavaSE7_public | 1.2 kB 00:00
ol6_x86_64_JavaSE7_public/primary | 1.9 kB 00:00
ol6_x86_64_JavaSE7_public 2/2
repo id repo name status
ol6_x86_64_JavaSE7_public Java SE 7 for Oracle Linux 6 (x86_64) (Public) 2
ol6_x86_64_UEKR3_latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux 6 (x86_64) - Latest 122
ol6_x86_64_addons Oracle Linux 6 Add ons (x86_64) 177
ol6_x86_64_ksplice Ksplice for Oracle Linux 6 (x86_64) 1,497
ol6_x86_64_latest Oracle Linux 6 Latest (x86_64) 25,093
repolist: 26,891

- To install Java SE 7 on your system, simply us yum install :

# yum install jdk
Loaded plugins: rhnplugin, ulninfo
This system is receiving updates from ULN.
ol6_x86_64_JavaSE7_public:
By downloading the Java software, you acknowledge that your use of the Java software is
subject to the Oracle Binary Code License Agreement for the Java SE Platform Products
and JavaFX (which you acknowledge you have read and agree to)
available at http://www.java.com/license.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package jdk.x86_64 2000:1.7.0_51-fcs will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
jdk x86_64 2000:1.7.0_51-fcs ol6_x86_64_JavaSE7_public 117 M
Transaction Summary
========================================================================================================================
Install 1 Package(s)
Total download size: 117 M
Installed size: 193 M
Is this ok [y/N]: y
Downloading Packages:
jdk-1.7.0_51-fcs.x86_64.rpm | 117 MB 02:27
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 2000:jdk-1.7.0_51-fcs.x86_64 1/1
Unpacking JAR files...

rt.jar...

jsse.jar...

charsets.jar...

tools.jar...

localedata.jar...

jfxrt.jar...
Verifying : 2000:jdk-1.7.0_51-fcs.x86_64 1/1
Installed:
jdk.x86_64 2000:1.7.0_51-fcs
Complete!

- You now have a completely install Java SE 7 on your Oracle Linux environment.

# ls /usr/java/jdk1.7.0_51/
bin COPYRIGHT db include jre lib LICENSE man README.html release src.zip
THIRDPARTYLICENSEREADME-JAVAFX.txt THIRDPARTYLICENSEREADME.txt

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha