Replace Open JDK with Sun JDK on a Amazon Linux Machine

Posted: February 16, 2012 in TECH ZONE


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-


Install Sun JDK 7 rpm – for updated java jdk checkout @

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”


Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s