Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: HOWTO: Java64 with 64-bit Firefox plugin

  1. #1
    Join Date
    Sep 2006
    Location
    Oklahoma
    Beans
    Hidden!

    HOWTO: Java64 with 64-bit Firefox plugin

    This tutorial was written specifically for Java 1.6.0_12, but should work fine on future revisions.


    Installing Java for 64-bit

    Begin by downloading Java from Sun. Download Here (Linux x64 self-extracting JRE file)

    or paste this command into the terminal:

    Code:
    wget -c 'http://www.java.net/download/jdk6/6u12/promoted/b02/binaries/jre-6u12-ea-bin-b02-linux-amd64-08_dec_2008.bin'
    Next, we'll create an install directory in /opt (as this is probably the best place for development applications).

    Code:
    cd /opt
    sudo mkdir java
    cd java
    Let's copy the installer file to the java directory.

    Code:
    sudo cp ~/jre-6u12-ea-bin-b02-linux-amd64-08_dec_2008.bin /opt/java/
    Finally, let's execute the installer

    Code:
    sudo bash jre-6u12-ea-bin-b02-linux-amd64-08_dec_2008.bin
    For good measure, let's register this as the default Java provider.

    Code:
    sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.6.0_12/bin/java" 1
    sudo update-alternatives --set java /opt/java/jre1.6.0_12/bin/java
    Installing Firefox plugin
    First, lets remove the gcj web plugin:
    Code:
    sudo apt-get remove icedtea-gcjwebplugin
    Remove the Cacao-plugin as described by Jozza the Wick:
    Code:
    sudo apt-get remove cacao-oj6-plugin
    If it comes up with "not found" or the like, ignore it and continue.

    Since we have it all setup, all we need to do is install the Firefox plugin. This can be done in one simple command (change according to version).

    Code:
    mkdir ~/.mozilla/plugins
    ln -s /opt/java/jre1.6.0_12/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
    deepclutch reported that this
    Code:
    sudo ln -s /opt/java/jre1.6.0_12/lib/amd64/libnpjp2.so /usr/lib/firefox-3.0.5/plugins/
    worked instead. If this works for you, and the thanks system comes back up, all credit goes to him/her.


    You can test the plugin by restarting your browser and going to http://www.javatester.org/version.html and checking for the pink box and line of text.

    For Epiphany
    Code:
    ln -s /opt/java/jre1.6.0_12/lib/amd64/libnpjp2.so /usr/lib/epiphany-webkit/2.24/plugins/
    by deepclutch
    Last edited by Frak; May 5th, 2009 at 10:22 PM. Reason: Fixed

  2. #2
    Join Date
    Aug 2006
    Beans
    Hidden!

    Re: HOWTO: Java64 with 64-bit Firefox plugin

    i followed the guide, however
    Code:
    ./jre-<miscellaneous version information> -amd64-<date>.bin
    did not work, so i used
    Code:
    sudo sh ./jre-<miscellaneous version information> -amd64-<date>.bin
    instead, and it doesn't work (java doesn't show up in firefox' addons manager, and javatester says it's disabled). did i do it wrong? regardless of wheter it's my fault or not, how can i repair it?

  3. #3
    Join Date
    Sep 2006
    Location
    Oklahoma
    Beans
    Hidden!

    Re: HOWTO: Java64 with 64-bit Firefox plugin

    Follow the last part "Installing Firefox plugin". And, well, I guess make sure you aren't using the default text I provide, as anything in <> are just placeholders for the actual program. Such as mine was

    Code:
    ./jre-6u12-ea-bin-b02-linux-amd64-08_dec_2008.bin
    You probably already get that, but for anybody who doesn't, there it is.

  4. #4
    Join Date
    Jul 2008
    Location
    Birmingham, England
    Beans
    2,400

    Re: HOWTO: Java64 with 64-bit Firefox plugin

    nice one, java was my last reason for sticking to a 32 bit OS.
    Would it be easier to put
    Code:
    wget -c 'http://www.java.net/download/jdk6/6u12/promoted/b02/binaries/jre-6u12-ea-bin-b02-linux-amd64-08_dec_2008.bin'
    in the first line though?
    Last edited by SuperSonic4; December 23rd, 2008 at 09:49 PM.

  5. #5
    Join Date
    Sep 2006
    Location
    Oklahoma
    Beans
    Hidden!

    Re: HOWTO: Java64 with 64-bit Firefox plugin

    Quote Originally Posted by SuperSonic4 View Post
    nice one, java was my last reason for sticking to a 32 bit OS.
    Would it be easier to put
    Code:
    wget -c 'http://www.java.net/download/jdk6/6u12/promoted/b02/binaries/jre-6u12-ea-bin-b02-linux-amd64-08_dec_2008.bin'
    in the first line though?
    Could, but I find it better if people download the latest build than to stick themselves with just one.

    Come to think of it, I'll change it. It could make the guide a bit easier to read.

  6. #6
    Join Date
    Oct 2007
    Location
    Dallas, TX, USA, 3rd Rock
    Beans
    25
    Distro
    Xubuntu Development Release

    Re: HOWTO: Java64 with 64-bit Firefox plugin

    Nice write up. I told the sun-java maintainer about it as a heads up for future update. This update actually works at http://www.pogo.com

    BTW, never try to predict ("should work...") the future unless you have a crystal ball that's in good shape!

  7. #7
    Join Date
    Sep 2006
    Location
    Oklahoma
    Beans
    Hidden!

    Re: HOWTO: Java64 with 64-bit Firefox plugin

    Quote Originally Posted by lemon8h8ead View Post
    Nice write up. I told the sun-java maintainer about it as a heads up for future update. This update actually works at http://www.pogo.com

    BTW, never try to predict ("should work...") the future unless you have a crystal ball that's in good shape!
    Thanks, and my crystal ball only has a few cracks

  8. #8

    Re: HOWTO: Java64 with 64-bit Firefox plugin

    How do you undo this and change IcedTea to be the default, again? I installed Sun Java, but Runescape still won't run under it. ^.^;
    3 apps that make Ubuntu more like a Mac
    How to make Ubuntu look and feel like Mac OS X

    Tarutaru icon (c) 2001-2004 SQUARE ENIX CO., LTD. All Rights Reserved.

  9. #9
    Join Date
    Sep 2006
    Location
    Oklahoma
    Beans
    Hidden!

    Re: HOWTO: Java64 with 64-bit Firefox plugin

    run sudo update-alternatives java and choose the one you want.

  10. #10

    Re: HOWTO: Java64 with 64-bit Firefox plugin

    Okay ... *does so* It just tells me

    Code:
    update-alternatives: unknown argument `java'
    3 apps that make Ubuntu more like a Mac
    How to make Ubuntu look and feel like Mac OS X

    Tarutaru icon (c) 2001-2004 SQUARE ENIX CO., LTD. All Rights Reserved.

Page 1 of 5 123 ... LastLast

Tags for this Thread

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
  •