Procedure for installing and setting Sun JDK Java on Default Amazon Linux AMI

Source: Internet
Author: User

# First verify the version of Java being used is not sunjsk.Java-version# Get The latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/ Jdk-7u1-download-513651.htmlwget http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.rpm# Rename The file downloaded, just to being niceMV jdk-7u1-linux-i586.rpm\?E\=1320265424\&H\=916f87354faed15fe652d9f76d64c844 jdk-7u1-linux-i586.rpm# Install Javasudo rpm-i jdk-7u1-linux-i586.rpm# Check If the default Java version is set to Sun JDKJava-version# If Not then lets create one more alternative for Java for Sun JDKSudo/usr/sbin/alternatives--install/usr/bin/java Java/usr/java/jdk1.7.0_01/bin/java 20000# Set The SUN JDK as the default JavaSudo/usr/sbin/alternatives--config Java# Verify If change in SDK is done.Java-version

Procedure for installing and setting Sun JDK Java on Default Amazon Linux AMI

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.