Java Problem

Asked by Karthi

Hi,

 Last Month I have Upgraded my ubuntu to 12.04, and till now everything is going right except java Plugin. Yes i installed the java through Terminal and installed version is " Version 7 Update 9' it work well but now it popup error like License Expired. Kindly help me to how uninstall the old oneand install newly.

Senti ;)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

How did you install Java?

Wha is the output of:

lsb_release -a; uname -a; java -version

Thanks

Revision history for this message
Karthi (senti10) said :
#2

Installed by using below commands:

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

Output:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Linux Karthick 3.2.0-32-generic-pae #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012 i686 i686 i386 GNU/Linux
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) Server VM (build 23.5-b02, mixed mode)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Have you contacted the ppa maintainer

Revision history for this message
Karthi (senti10) said :
#4

Can't understand your question ?

Revision history for this message
Karthi (senti10) said :
#5

ppa maintainer ?

Just i had added the source to Repositary and then update it and installed. All these installation information will get from the Internet Forums.

Revision history for this message
David Pires (slickymaster) said :
#6

In order to remove your existing version of Java and all the Java related packages, type in a terminal window:
sudo apt-get update
apt-cache search java | awk '{print($1)}' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e 'java-common' | xargs sudo apt-get -y remove
sudo apt-get -y autoremove

Purge config files:
dpkg -l | grep ^rc | awk '{print($2)}' | xargs sudo apt-get -y purge

Remove Java config and cache directory:
sudo bash -c 'ls -d /home/*/.java' | xargs sudo rm -rf

Remove manually installed JVMs:
sudo rm -rf /usr/lib/jvm/*

Now, you can move into a new installation of Java. So open a terminal windows and type:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

And that's it. After the installation finishes, if you wish to see if it was successful, you can run the following command:
java -version

Can you help with this problem?

Provide an answer of your own, or ask Karthi for more information if necessary.

To post a message you must log in.