Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/single.php on line 4

Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/single.php on line 4

Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/single.php on line 4

Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/header.php on line 4

Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/header.php on line 4

Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/header.php on line 4
Installing Oracle/Sun Java6 jdk on Ubuntu 12.04 | tips&tricks

Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/sidebar.php on line 4

Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/sidebar.php on line 4

Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/sidebar.php on line 4

Installing Oracle/Sun Java6 jdk on Ubuntu 12.04

Posted by

As ubuntu droped the oracle jdk support from 12.04 fully, you may face some performance and stability problem with the open jdk. Here is the simple 3 line tricks to get the oracle/sun jdk in 12.04

sudo add-apt-repository ppa:flexiondotorg/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin

You may see few key warning. Just ignore those, it’s the PPA’s small issue. but the jdk will work great.

Please let us know if you face any problem


You may also like to read:




Views :2686

Comments

  1. bill says:

    I get this message..

    The following packages have unmet dependencies:
    sun-java6-jdk:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
    sun-java6-plugin:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

  2. adam says:

    I also get the message :

    The following packages have unmet dependencies:
    sun-java6-jdk:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
    sun-java6-plugin:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    1. drew says:

      These errors are being generated because there is not a 64bit copy of the sun-java6-jdk availible from the repository.

      As an alternative – you can install the version of java from the Oneiric repository and then install the most recent Java binaries from Sun.

  3. sara says:

    thanks was helpful

    sara

  4. dama says:

    I get this message …

    You are about to add the following PPA to your system:
    tag:launchpad.net:2008:redacted
    More info: https://launchpad.net/~flexiondotorg/+archive/java
    Press [ENTER] to continue or ctrl-c to cancel adding it

    Exception in thread Thread-1:
    Traceback (most recent call last):
    File “/usr/lib/python2.7/threading.py”, line 551, in __bootstrap_inner
    self.run()
    File “/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py”, line 95, in run
    self.add_ppa_signing_key(self.ppa_path)
    File “/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py”, line 107, in add_ppa_signing_key
    print “Error reading %s: %s” % (lp_url, e[1])
    NameError: global name ‘lp_url’ is not defined

  5. goSeas says:

    i got this message:
    GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 2EA8F35793D8809A

  6. sandy says:

    it’s working!!.. bt don’t hw does that relate to ppa issue. cn u plz explain?


Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/footer.php on line 4

Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/footer.php on line 4

Warning: Illegal string offset 'id' in /home/tipsntricks/tips-tricks.net/wp-content/themes/magazinum/footer.php on line 4