This is a discussion on Java to Firefox Linking Problem within the Linux Operating System forums, part of the Unix Operating Systems category; --> I'm trying to install and link Java to Firefox, running Kubuntu Linux 10.1 and being a 'newbie' I'm probably ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm trying to install and link Java to Firefox, running Kubuntu Linux 10.1 and being a 'newbie' I'm probably missing something very obvious. A. No problem downloading and expanding Java as per the instrucions at http://www.java.com/en/download/help...selfextracting B. However when I try to link it per these instructions: Enable and Configure # Mozilla 1.4 and later # Mozilla 1.2, Netscape 6 and later Mozilla 1.4 and later 1. Go to the plugins sub-directory under the Mozilla installation directory cd <Mozilla installation directory>/plugins 2. In the current directory, create a symbolic link to the JRE ns7/libjavaplugin_oji.so file Type: ln -s <JRE installation directory>/plugin/i386/ns7/libjavaplugin_oji.so Example: * If Mozilla is installed in this directory: /usr/lib/mozilla-1.4/ * and if the JRE is installed at this directory: /usr/java/jre1.5.0 * Then type at the terminal to go to the browser plug-in directory: cd /usr/lib/mozilla-1.4/plugins * Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser. ln -s /usr/java/jre1.5.0/plugin/i386/ns7 /libjavaplugin_oji.so . 3. Start Mozilla browser or restart it if it is already running. Note that if you have other Mozilla components (ie: Messenger, Composer, etc) running, you will need to restart them as well. 4. Go to Edit > Preferences. Under Advanced category > Select Enable Java I get the following results from the terminal window, where I've setup a "root session" and I'm at a loss on what to try next.. dennis@ubuntu:/usr/lib/mozilla-firefox/plugins$ ln home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so ln: creating hard link `./libjavaplugin_oji.so' to `/home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so': Permission denied I can't figure out why I get this error message and any help would be GREATLY appreciated. TIA SKooter |
| |||
| SKooter wrote: > > I get the following results from the terminal window, where I've setup a > "root session" and I'm at a loss on what to try next.. > > dennis@ubuntu:/usr/lib/mozilla-firefox/plugins$ ln > home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so > ln: creating hard link `./libjavaplugin_oji.so' to > `/home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so': > Permission denied > > I can't figure out why I get this error message and any help would be > GREATLY appreciated. > > TIA > SKooter Skooter, you need to use the -s option (symbolic links) in the ln command. Command syntax to create a symbolic link: ln -s TARGET LINK_NAME so if your TARGET (file you want to create a link to) is: /home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so and your LINK_NAME (name of the link you want to create) is: /usr/lib/mozilla/plugins you would type: ln -s home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so Tip--- If you have mozilla install do: help --> About Plugins and it will list all plugins installed. .....bill |
| |||
| On Mon, 28 Nov 2005 20:56:01 +0100, Bill Fahrenkrug <billf@qwest.net> wrote: > SKooter wrote: > > >> >> I get the following results from the terminal window, where I've setup a >> "root session" and I'm at a loss on what to try next.. >> >> dennis@ubuntu:/usr/lib/mozilla-firefox/plugins$ ln >> home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so >> ln: creating hard link `./libjavaplugin_oji.so' to >> `/home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so': >> Permission denied >> >> I can't figure out why I get this error message and any help would be >> GREATLY appreciated. >> >> TIA >> SKooter > > Skooter, you need to use the -s option (symbolic links) in the ln command. > > Command syntax to create a symbolic link: > ln -s TARGET LINK_NAME > > so if your TARGET (file you want to create a link to) is: > /home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so > > and your LINK_NAME (name of the link you want to create) is: > > /usr/lib/mozilla/plugins > > you would type: > > ln -s > home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so I would do ln -s home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so . (Please note the dot at the end. It denotes the current directory. I tend to think the docs you used may also have shown this dot.) If the last word on the command line denotes a directory, the link name is copied from the target name. That is, if you have a file, say, /etc/passwd, and a directory, say /tmp, the command ln -s /etc/passwd /tmp creates a link /tmp/passwd that points to /etc/passwd. From what you have posted above, it seems to work without this dot. That may be something new, I have not seen it before. Yesss, I just tried it! So, if you have only a target name, it seems to be assumed that the link 1) has the same name as the target, and 2) is to be created in the current directory. You have installed java in your home directory, you can do that without special permissions. To add a link to the directory /usr/lib/mozilla-firefox/plugins, you need write permission in that directory, whether you are making a "hard" or "symbolic" link. That write permission usually belongs to the user "root". You need to use the command "su root", and give the password, and then check that you are still in the right directory; if not do "cd /usr/lib/mozilla-firefox/plugins" again. "su" originally was an abbreviation for "set-userid". People tend to think it means "super-user", because, if you don't say *what* userid to set, it assumes you mean root, and so most of the time people just say "su" to "become" "root". -Enrique |
| |||
| On Tue, 29 Nov 2005 18:52:44 +0000, SKooter wrote: > I'm trying to install and link Java to Firefox, running Kubuntu Linux > 10.1 and being a 'newbie' I'm probably missing something very obvious. > I get the following results from the terminal window, where I've setup a > "root session" and I'm at a loss on what to try next.. > > dennis@ubuntu:/usr/lib/mozilla-firefox/plugins$ ln > home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so > ln: creating hard link `./libjavaplugin_oji.so' to > `/home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so': > Permission denied You are *not* in a "root session" - the userid is still you, (dennis@ubuntu) rather than root. What did you do that you think was giving you a root session? Try the following (all on 1 line): sudo ln -s /home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins/libjavaplugin_oji.so The initial "sudo" will cause the ln command to be run as root. ln -s is needed if /home and /usr are different partitions, and is advisable anyway. > I can't figure out why I get this error message and any help would be > GREATLY appreciated. > > TIA > SKooter Tim |
| ||||
| Tim wrote: > You are *not* in a "root session" - the userid is still you, > (dennis@ubuntu) rather than root. What did you do that you think was > giving you a root session? Using the Shell Konsole I had opened a new session using the pulldown Menu options of "Session==> New Root Shell" which I thought gave me a root session. Then again I've had Linux installed for all of 2 days now. > > Try the following (all on 1 line): > sudo ln -s /home/dennis/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so > /usr/lib/mozilla-firefox/plugins/libjavaplugin_oji.so > > > The initial "sudo" will cause the ln command to be run as root. ln -s is > needed if /home and /usr are different partitions, and is advisable anyway. That worked just fine and I really appreciate the help. I just need many more hours of RTFM under my belt. cYa SKooter http://user.txcyber.com/~goldwing |