Installing JRE/JDK 7 in GOS using CG-REDI hosted RPM Server

Document created by adewanga on Jul 17, 2014Last modified by adewanga on Feb 13, 2015
Version 5Show Document
  • View in full screen mode

This guide provides instructions on installing OpenJDK JRE/JDK 7 in GOS using CG-REDI hosted RPM server. This method should be used when Internet connection is available to the CGR through a network and the CGR can access the RPM server hosted in CG-REDI (Public IP address: 173.36.209.72). If an Internet connection is not available to the CGR to establish a session with CG-REDI, then follow the procedure documented here: Installing OpenJDK 7 JRE/JDK in GOS using local RPM server

 

Prerequisites:

 

The following are prerequisites of using this procedure:

 

1. Starter Kit A] should be assembled as documented here: Starter Kit Topologies For IOx Application development

 

2. Configure NAT for external connectivity as documented here: NAT configurations for GOS external connectivity


3. Internet should be accessible to the GOS through the connection to the corporate network. HTTP based access to the CG-REDI RPM server should be available.



Here are the steps for installing OpenJDK:


1. Login to GOS on the CGR and add the RPM channel to the GOS as follows:

 

root@qemux86:~# smart channel --add mychannel type=rpm-md baseurl=http://173.36.209.72/rpmrepo/repo components=extra -y;

 

2. Make sure the channel is added:

 

root@qemux86:~# smart channel --show mychannel

[mychannel]

type = rpm-md

baseurl = http://128.107.155.53/rpmrepo/repo

 

3. Read channel on the GOS:

 

root@qemux86:~# smart update

Updating cache...               ######################################## [100%]

 

 

Fetching information for 'mychannel'...                                    

-> http://128.107.155.53/rpmrepo/repo/repodata/repomd.xml                  

repomd.xml                      ######################################## [ 50%]

-> http://128.107.155.53/rpmrepo/repo/repodata/primary.xml.gz              

-> http://128.107.155.53/rpmrepo/repo/repodata/filelists.xml.gz            

primary.xml.gz                  ######################################## [ 75%]

filelists.xml.gz                ######################################## [100%]

 

 

Updating cache...               ######################################## [100%]

 

 

Channels have 4900 new packages.

Saving cache...

 

root@qemux86:~#

 

 

4. Install JRE/JDK:

 

JRE:

root@qemux86:~# smart install openjdk-7-jre

 

Complete installation logs are available here: OpenJDK 7 JRE installation logs

 

JDK:

root@qemux86:~# smart install openjdk-7-jdk

 

Complete installation logs are available here: OpenJDK 7 JDK installation logs

 

5. Verify Java installation:

 

root@qemux86:~# java -version

java version "1.7.0_25"

OpenJDK Runtime Environment (IcedTea 2.3.12) (25b30-2.3.12)

OpenJDK Zero VM (build 23.7-b01, interpreted mode)

root@qemux86:~#


5. Source code for the RPM packages is available in the RPM server at the following location:


/opt/lampp/htdocs/rpmrepo/source/software.tar.gz

Attachments

    Outcomes