Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Howto: Manually (non-repo) install jre-1_5_0_06 on Dapper

  1. #1
    Join Date
    Jan 2005
    Beans
    222

    Howto: Manually (non-repo) install jre-1_5_0_06 on Dapper

    I noticed people were still using my old manual java howto thread. I've since updated the instructions to apply to the newer firefox on dapper.

    These manual install instructions should only be used if for some reason you cannot follow the java-package install method. Also,
    Quote Originally Posted by jdong
    In Dapper, Sun Java is available in the Multiverse section as sun-java5-jre and sun-java5-jdk (JDK is the development kit that contains the Java compiler)


    So, here we go:
    =============

    First, download the linux runtime installer here. Do NOT get the rpm! Get the one that says Linux (self-extracting file).

    After downloading, cd to where you downloaded the file and run:
    Code:
    sudo mv jre-1_5_0_06-linux-i586.bin /usr/local
    cd /usr/local
    sudo chmod a+x jre-1_5_0_06-linux-i586.bin
    sudo sh jre-1_5_0_06-linux-i586.bin
    Say 'yes' to the license agreement and watch it extract the files into a folder called jre1.5.0_06
    You're almost done. Now you want to install the plugin for firefox:

    Code:
    cd /usr/lib/firefox/plugins
    sudo ln -s /usr/local/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so
    Firefox is now happily running java applets (once you restart it).
    The final steps are:

    Code:
    sudo ln -sf /usr/local/jre1.5.0_06/bin/java_vm /usr/bin/java_vm
    sudo update-alternatives --install /usr/bin/java java /usr/local/jre1.5.0_06/bin/java 1
    And now the java runtime environment appears in your list of choices when running 'sudo update-alternatives --config java'! Go ahead and run that, and chose the sun java option. Then to check to make sure it worked, run 'java -version', which should output something like this:

    Code:
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
    Done!

    If you want to do some configurating with the java control pannel, run

    Code:
    sh /usr/local/jre1.5.0_06/bin/ControlPanel
    Enjoy!

    =========================
    Removal Instructions

    If the time comes when you need/want to remove java, these commands will do the trick if you followed the howto exactly:

    Code:
    sudo rm /usr/lib/firefox/plugins/libjavaplugin_oji.so
    sudo rm /usr/bin/java_vm
    sudo update-alternatives --remove java /usr/local/jre1.5.0_06/bin/java

    Then you'll want to open up a root nautilus and go to /usr/local/ and delete the jre1.5.0_06 folder.
    Last edited by Arktis; June 8th, 2006 at 03:18 AM.
    ...

  2. #2
    Join Date
    Jun 2005
    Location
    de.muc
    Beans
    192
    Distro
    Ubuntu 16.04 Xenial Xerus

    RE: install jre-1_5_0_06 on Dapper

    Worked like a charm. Thank you!

  3. #3
    Join Date
    Sep 2005
    Location
    Europe , the Netherlands
    Beans
    33
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: Manually (non-repo) install jre-1_5_0_06 on Dapper

    It worked like a charm. Thank you!



    -----------------------------------------


    Acer laptop 1522, 528mb, AMD 64 3000, 64mb Nvidia.
    http://www.antarctica-rbak.nl/ubuntu/acer_aspire.php
    Last edited by bierpullen; October 23rd, 2007 at 07:33 PM.

  4. #4
    Join Date
    Feb 2005
    Location
    Bodø, Norway
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Howto: Manually (non-repo) install jre-1_5_0_06 on Dapper

    Thank you.
    Running latest Sun Java now!
    Registered Linux user #334622 @
    Linux Counter

  5. #5
    Join Date
    Apr 2006
    Beans
    6

    Re: Howto: Manually (non-repo) install jre-1_5_0_06 on Dapper

    java installed on dapper but mozilla plugin not

    i've made whith my way

    sudo apt-get install java-package
    chmod +x jre-1_5_0_06-linux-i586.bin
    fakeroot make-jpkg jre-1_5_0_04-linux-i586.bin
    sudo dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb
    after reboot mozilla

  6. #6
    Join Date
    Jan 2006
    Location
    México
    Beans
    160
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Howto: Manually (non-repo) install jre-1_5_0_06 on Dapper

    Quote Originally Posted by Arktis
    I noticed people were still using my ......
    So, here we go:
    =============

    First, download the linux runtime installer here. Do NOT get the rpm! Get the one that says Linux (self-extracting file).

    After downloading, cd to where you downloaded the file and run:
    Code:
    sudo mv jre-1_5_0_06-linux-i586.bin /usr/local
    cd /usr/local
    sudo chmod a+x jre-1_5_0_06-linux-i586.bin
    sudo sh jre-1_5_0_06-linux-i586.bin
    ..........
    .
    Should this also work for Breezy ?

    I'm having troubles not finding java-package on the repos and just got tired of enableing/disableing repos... so any advice will be appreciated.

    Kind Regards

    Luis C. Suárez

    PS. this is my sources.list (just in case)
    #deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted

    deb http://us.archive.ubuntu.com/ubuntu breezy main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu breezy main restricted

    deb http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted

    deb http://us.archive.ubuntu.com/ubuntu breezy universe
    deb-src http://us.archive.ubuntu.com/ubuntu breezy universe

    deb http://us.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse

    deb http://security.ubuntu.com/ubuntu breezy-security main restricted
    deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted

    deb http://security.ubuntu.com/ubuntu breezy-security universe
    deb-src http://security.ubuntu.com/ubuntu breezy-security universe

    #deb http://code.campware.org/debian/ unstable main
    Humillity is not a "Status"...
    It's a "Gift"!!!

  7. #7
    Join Date
    Jan 2006
    Location
    México
    Beans
    160
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Howto: Manually (non-repo) install jre-1_5_0_06 on Dapper

    Yes it works !!!!
    Thank u so much

    Kind Regards

    Luis C. Suárez

    PS1: I think this should be the java totorial instead of the one in the wikky. It's so simple and faster
    PS2: Here is the link for breezy and I believe is almost the same.
    http://ubuntuforums.org/showthread.php?t=76754
    Last edited by LuisC-SM; May 22nd, 2006 at 06:09 PM.
    Humillity is not a "Status"...
    It's a "Gift"!!!

  8. #8
    Join Date
    May 2006
    Location
    Brunswick, GA
    Beans
    118

    Re: Howto: Manually (non-repo) install jre-1_5_0_06 on Dapper

    I though I followed the instructions right but when I run java version here is what I get:

    jason@jason-desktop:~$ java version
    Exception in thread "main" java.lang.NoClassDefFoundError: version
    at gnu.java.lang.MainThread.run(libgcj.so.7)
    Caused by: java.lang.ClassNotFoundException: version not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
    at java.net.URLClassLoader.findClass(libgcj.so.7)
    at java.lang.ClassLoader.loadClass(libgcj.so.7)
    at java.lang.ClassLoader.loadClass(libgcj.so.7)
    at java.lang.Class.forName(libgcj.so.7)
    at gnu.java.lang.MainThread.run(libgcj.so.7)

    Anyone know what I could have done wrong and what I should do to fix it?

  9. #9
    Join Date
    Jun 2006
    Beans
    3
    Distro
    Ubuntu 6.06

    Re: Howto: Manually (non-repo) install jre-1_5_0_06 on Dapper

    Quote Originally Posted by learning
    I though I followed the instructions right but when I run java version here is what I get:

    jason@jason-desktop:~$ java version
    Exception in thread "main" java.lang.NoClassDefFoundError: version
    at gnu.java.lang.MainThread.run(libgcj.so.7)
    Caused by: java.lang.ClassNotFoundException: version not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
    at java.net.URLClassLoader.findClass(libgcj.so.7)
    at java.lang.ClassLoader.loadClass(libgcj.so.7)
    at java.lang.ClassLoader.loadClass(libgcj.so.7)
    at java.lang.Class.forName(libgcj.so.7)
    at gnu.java.lang.MainThread.run(libgcj.so.7)

    Anyone know what I could have done wrong and what I should do to fix it?

    you had "java version"

    you forgot the '-'

    it should be: "java -version"

  10. #10
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: Manually (non-repo) install jre-1_5_0_06 on Dapper

    What would be the advantage of installing Java using either this or the java-package method?

    In Dapper, Sun Java is available in the Multiverse section as sun-java5-jre and sun-java5-jdk (JDK is the development kit that contains the Java compiler)
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •