Announcement

Collapse
No announcement yet.

Java in Firefox 3

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Java in Firefox 3

    I have just started using a web 2.0 program which needs Java. I have downloaded the java plugin and followed the instructions to configure it however I am having continual problems.

    root@susan-desktop:/home/susan# cd /usr/lib/jvm/
    root@susan-desktop:/usr/lib/jvm# chmod a+x jre-6u5-linux-i586.bin
    chmod: cannot access `jre-6u5-linux-i586.bin': No such file or directory
    root@susan-desktop:/usr/lib/jvm#

    The java console is installed within my home folder but when I tried to get the firefox plugin to look to this file I got another error saying that it didn't exist. I was wondering whether there was some compatibility problem with running Kubuntu 7.10, Firefox 3 and Java.

    Has anyone managed to get them all working together?
    Thanks
    Susan
    Kubuntu 7.10<br />Desperate for KDE4

    #2
    Re: Java in Firefox 3

    1) When I open my /usr/lib/jvm I see folders, not a bin file. Did you try to list the contents (command=ls) to see what is there?

    2) Do you have kubuntu-restricted drivers installed. The blurb says "Commonly used restricted packages
    This package depends on some commonly used packages in the Kubuntu
    multiverse repository.

    Installing this package will pull in support for MP3 playback and decoding,
    Java runtime environment, Flash plugin, DVD playback, and LAME (to create
    compressed audio files).

    Please note that packages from multiverse are restricted by copyright
    or legal issues in some countries. See
    http://www.ubuntu.com/ubuntu/licensing
    for more information.

    3) Google: jre-6u5-linux-i586.bin This brings up "How to instal jre-6u5-linux-i586.bin from terminal from Desktop" at http://ubuntuforums.org/showthread.php?t=727267. One thing it says is "But if you're trying to install java, a much easier way is from the repos.
    sudo apt-get install sun-java6-plugin2
    "A problem well stated is a problem half solved." --Charles F. Kettering
    "Sometimes the questions are complicated and the answers are simple."--Dr. Seuss

    Comment


      #3
      Re: Java in Firefox 3

      Has anyone managed to get them all working together?
      Yes.


      Repositories (Gutsy) have: sun-java6-plugin. The Java(TM) Plug-in, Java SE 6
      This is a metapackage containing dependencies for running Java in
      various browsers.
      => will install other packages if you install this.

      Repository version is 6-03 => Version 6 Update 3.


      Installing the latest version (6-05)
      Official Installation Instructions: Linux download and installation instructions for the Java Runtime Environment (JRE)


      Non official example (working here )

      1) Downloading jre-6u5-linux-i586.bin (using /media/sda6/tmpjava/ as work directory)

      2) Right clicking jre-6u5-linux-i586.bin > Properties > Permissions -> is executable:




      3) Press F4: Konsole pops up: in the konsole:
      Code:
      /media/sda6/tmpjava/jre-6u5-linux-i586.bin
      Do you agree to the above license terms? [yes or no] y
      Unpacks lot of stuff in the jre1.6.0_05 folder


      4) Moving jre1.6.0_05 folder to the home folder:

      Using ~/bin/jre1.6.0_05 (that is same as /home/<user>/bin/jre1.6.0_05


      5) Making links /1/:

      Syntax is
      Code:
      ln -s /path/to/real/file /path/to/non-existant/file
      Real file is: ~/bin/jre1.6.0_05/plugin/i386/ns7/libjavaplugin_oji.so

      Mozilla derived (Firefox, Seamonkey...) are using ~/.mozilla/plugins/

      =>

      Code:
      ln -s ~/bin/jre1.6.0_05/plugin/i386/ns7/libjavaplugin_oji.so ~/.mozilla/plugins/libjavaplugin_oji.so

      6) Testing: Verify Installation
      Enabling java: In the Firefox Edit > Preferences -> Content tab: Enable java



      /1/ man ln
      LN(1) User Commands LN(1)

      NAME
      ln - make links between files

      SYNOPSIS
      ln [OPTION]... [-T] TARGET LINK_NAME (1st form)
      ln [OPTION]... TARGET (2nd form)
      ln [OPTION]... TARGET... DIRECTORY (3rd form)
      ln [OPTION]... -t DIRECTORY TARGET... (4th form)

      DESCRIPTION
      In the 1st form, create a link to TARGET with the name LINK_NAME. In
      the 2nd form, create a link to TARGET in the current directory. In the
      3rd and 4th forms, create links to each TARGET in DIRECTORY. Create
      hard links by default, symbolic links with --symbolic. When creating
      hard links, each TARGET must exist.

      Mandatory arguments to long options are mandatory for short options
      too.
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Re: Java in Firefox 3

        Originally posted by Rog131

        32-bit Repositories (Gutsy) have: sun-java6-plugin.
        Emphasis added .....

        Comment


          #5
          Re: Java in Firefox 3

          Emphasis added .....
          Thank you ! (and Hardy has sun-java6-plugin 6-04-2, 32-bit)
          Before you edit, BACKUP !

          Why there are dead links ?
          1. Thread: Please explain how to access old kubuntu forum posts
          2. Thread: Lost Information

          Comment


            #6
            Re: Java in Firefox 3

            ln: creating symbolic link `/root/usr/lib/firefox-3.0-3.0b3pre/plugins/libjavaplugin_oji.so' to `/root/home/susan/jre1.6.0_05/plugin/i386/ns7/libjavaplugin_oji.so': No such file or directory
            root@susan-desktop:/home/susan#

            I thought I was about to get somewhere but it doesn't like this!

            I tried wording it as Using ~/bin/jre1.6.0_05 first but it didn't like that, that is why I tried going the long way around.
            Kubuntu 7.10<br />Desperate for KDE4

            Comment


              #7
              Re: Java in Firefox 3

              /root/usr/lib/firefo...
              and
              /root/home/susan/...
              I think that it should be /usr/lib/firefo...
              and
              /home/susan/...

              Before you edit, BACKUP !

              Why there are dead links ?
              1. Thread: Please explain how to access old kubuntu forum posts
              2. Thread: Lost Information

              Comment


                #8
                Re: Java in Firefox 3

                ln: target `~usr/lib/firefox-3.0-3.0b3pre/plugins/libjavaplugin_oji.so' is not a directory

                it isn't making it easy for me!
                Kubuntu 7.10<br />Desperate for KDE4

                Comment


                  #9
                  Re: Java in Firefox 3

                  From within the directory you wish the link to be created it, use the 2nd form of ln:
                  ln [OPTION]... TARGET (2nd form)
                  Lets assume the 'target' file is located in:
                  /usr/bin/directory/target.so

                  and you wish the 'link' to this file to be created in the 'Links' folder in your user home directory, then open a console and type:
                  Code:
                  cd Link
                  ln -s /usr/bin/directory/target.so
                  That's it. A symbolic link to the target file is created in the Links folder.
                  Windows no longer obstructs my view.
                  Using Kubuntu Linux since March 23, 2007.
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Re: Java in Firefox 3

                    "~" is a shortcut for "/home/currentusername", and ~foo is a shortcut for /home/foo... I suspect you want to type "/usr/..." not "~usr..."

                    "locate libjavaplugin" may give you a clue.

                    Comment


                      #11
                      Re: Java in Firefox 3

                      I think that this should work:
                      Code:
                      sudo ln -s /home/susan/jre1.6.0_05/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-3.0-3.0b3pre/plugins/libjavaplugin_oji.so

                      Also, there is Service/Context menu: Symlinks by Click
                      "With this context menu you can symlink files or folders to the another folder."
                      Before you edit, BACKUP !

                      Why there are dead links ?
                      1. Thread: Please explain how to access old kubuntu forum posts
                      2. Thread: Lost Information

                      Comment


                        #12
                        Re: Java in Firefox 3

                        Thanks Rog131, I used the line and konsole said that the link already exists and yet even after a reboot the website in question was still saying that I needed a Java runtime environment plug in. The only way I have got the website to work so far is to open Konqueror and tell it to run as Firefox 1.4 and then the Java loads!

                        This is really baffling me!
                        Kubuntu 7.10<br />Desperate for KDE4

                        Comment


                          #13
                          Re: Java in Firefox 3

                          The only way I have got the website to work so far is to open Konqueror and tell it to run as Firefox 1.4 and then the Java loads!


                          Maybe (?). I have both installed: Java from the Repository (6-03) and java from jre-6u5-linux-i586.bin.
                          Before you edit, BACKUP !

                          Why there are dead links ?
                          1. Thread: Please explain how to access old kubuntu forum posts
                          2. Thread: Lost Information

                          Comment

                          Working...
                          X