how-to-install-oracle-java-7-in-ubuntu ?

java ကို Ubuntu မွာထည့္သြင္းရန္ေအာက္ပါအတိုင္းလုပ္ေဆာင္ပါ-

ေအာက္ပါ command ကို terminal တြင္ ရိုက္ပါ –

             sudo apt-get purge openjdk*

java7 ကို အျခားေသာ PPA မ်ား မွ ထည့္သြင္းခဲ့ လွ်င္ ေအာက္ပါအတိုင္း command ကို terminal တြင္ ရုိက္ပါ

sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update

oracle java 7 ကို Ubuntu 13.10/13.04/12.10/12.04 တို့တြင္ install ျပဳလုပ္ႏိုင္ရန္ –

ေအာက္ပါ command ကို terminal တြင္ ရိုက္ပါ

                   sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer


installation ျပဳလုပ္၍ ေအာက္ေဖာ္ျပပါ error code (1) ၾကဳံ့တြ့ရပါက—–

Do you want to continue [Y/n]? y

Setting up oracle-java7-installer (7u45-0~webupd8~0) …

Downloading Oracle Java 7…
–2013-11-10 11:23:01–
Resolving (… failed: Name or service not known.
wget: unable to resolve host address ‘’
download failed
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (–configure):
subprocess installed post-installation script returned error exit status 1
Setting up firefox (25.0+build3-0ubuntu0.13.10.1) …
update-alternatives: error: alternative path /usr/bin/firefox doesn’t exist
dpkg: error processing firefox (–configure):
subprocess installed post-installation script returned error exit status 2
Processing triggers for libc-bin …
Processing triggers for initramfs-tools …
update-initramfs: Generating /boot/initrd.img-3.11.0-13-generic
Processing triggers for ca-certificates …
Updating certificates in /etc/ssl/certs… 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d….done.
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

ေအာက္ပါ command တို့ျဖင့္ terminal တြင္အဆင့္ဆင့္ လုပ္ေဆာင္ပါ

sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update

ျပီးေနာက္ျပန္လည္၍ installation ျပဳလုပ္ လ္ိုပါက အေပၚ မွ Installation command ျဖင့္ျပန္လည္ထည့္သြင္းပါ ။


his is Chit Ko Ko Win from Myanmar (Burma) . I start learning redhat Linux in 2010 because of lazy in MS but can't used as well as Ubuntu . After meet with Ubuntu Myanmar LoCo Team , I migrated to Ubuntu Operating system and I joined with LoCo Team . Reading , Learning and Helping to Team when we go all around the country . Most of the time I spend in community .Later ,I try to help people in facebook group after that I know that they just need localization . That'why I start wrote some articles for our people our language and training Ubuntu at Info Myanmar Computer Services .

Tagged with: ,
One comment on “how-to-install-oracle-java-7-in-ubuntu ?
  1. Hey There. I found your blog using msn. This is a very well written article.
    I will be sure to bookmark it and come back to read more of your useful info.
    Thanks for the post. I’ll certainly comeback.

Leave a Reply

Your email address will not be published. Required fields are marked *