Replace Open JDK with Sun JDK on a Amazon Linux Machine

Posted: February 16, 2012 in TECH ZONE

Step-1

Remove open jdk by looking into its rpm

  • #rpm -qa
After identifying the rpm for open jdk remove it by entering the below command with the rpm name at the end.
  • # rpm -e –nodeps java-1.6.0-openjdk-1.6.0.0-52.1.9.10.40.amzn1.x86_64

Step-2

Install Sun JDK 7 rpm – for updated java jdk checkout @ http://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/#more-39

Install the downloaded rpm by entering the command

  • # rpm -ivh jdk-7u5-linux-x64.rpm

After installation please enter the command  ” java -version to check the installed rpm”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s