Ubuntu 13.04 + Java Installation
Ubuntu 13.04 + Java Installation
- Download JDK 7
http://download.oracle.com/otn-pub/java/jdk/7u40-b43/jdk-7u40-linux-x64.tar.gz
- Install JDK
rpm -ivh jdk-7u40-linux-x64.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
error: Failed dependencies:
/bin/basename is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/cat is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/cp is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/gawk is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/grep is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/ln is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/ls is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/mkdir is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/mv is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/pwd is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/rm is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/sed is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/sort is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/touch is needed by jdk-2000:1.7.0_40-fcs.x86_64
/usr/bin/cut is needed by jdk-2000:1.7.0_40-fcs.x86_64
/usr/bin/dirname is needed by jdk-2000:1.7.0_40-fcs.x86_64
/usr/bin/expr is needed by jdk-2000:1.7.0_40-fcs.x86_64
/usr/bin/find is needed by jdk-2000:1.7.0_40-fcs.x86_64
/usr/bin/tail is needed by jdk-2000:1.7.0_40-fcs.x86_64
/usr/bin/tr is needed by jdk-2000:1.7.0_40-fcs.x86_64
/usr/bin/wc is needed by jdk-2000:1.7.0_40-fcs.x86_64
/bin/sh is needed by jdk-2000:1.7.0_40-fcs.x86_64
---------------------------------------------------------------------------------------------- - if you will get above mention error, please follow below mention instructions.
root@vjain-Parallels-Virtual-Platform:/home/vjain/Downloads# sudo add-apt-repository ppa:dlecan/openjdk
You are about to add the following PPA to your system:
tag:launchpad.net:2008:redacted
More info: https://launchpad.net/~dlecan/+archive/openjdk
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmp2fe39r/secring.gpg' created
gpg: keyring `/tmp/tmp2fe39r/pubring.gpg' created
gpg: "tag:launchpad.net:2008:redacted" not a key ID: skipping
root@vjain-Parallels-Virtual-Platform:/home/vjain/Downloads# - Please update all.
sudo apt-get update
- Now get JDK by below mention instructions
sudo apt-get install openjdk-7-jdk
- Validate your installation
root@vjain-Parallels-Virtual-Platform:/home/vjain/Downloads# java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) - Enjoy !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Comments
Post a Comment