LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2006, 03:50 AM   #1
sunlion
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Rep: Reputation: 0
Firefox 1.5 and JRE, how to fix symlink?


I'm new to linux and Mandriva, and I'm simply trying to get JRE to work after installing Firefox 1.5

I tried the "click to install" method, and upon closing browser and reopening, it still did not work. I downloaded and installed JRE manually, following the instructions correctly I think, and it still does not work.

The Firefox plugin dir is at
/home/myusername/firefox1.5/firefox/plugins

and its present contents:

lrwxrwxrwx 1 myusername myusername 67 Jan 8 04:47 libjavaplugin_oji.so -> /usr/java/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
-rwxr-xr-x 1 myusername myusername 19224 Nov 11 20:00 libnullplugin.so*

$ which java
/usr/lib64/jre-1.4.2/bin/java

$ find / -iname libjavaplugin_oji.so
/home/myusername/firefox1.5/firefox/plugins/libjavaplugin_oji.so
/home/myusername/libjavaplugin_oji.so

$ ls -al /home/myusername/firefox1.5/firefox/plugins/libjavaplugin_oji.so
lrwxrwxrwx 1 myusername myusername 67 Jan 8 04:47 /home/myusername/firefox1.5/firefox/plugins/libjavaplugin_oji.so -> /usr/java/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

$ ls -al /home/myusername/libjavaplugin_oji.so
lrwxrwxrwx 1 myusername myusername 68 Jan 9 03:20 /home/myusername/libjavaplugin_oji.so -> /usr/local/bin/java/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so

I've found various and contradictory instructions about what to type to make the symlink work, and I think I just need to change a path somewhere, though it seems that I can't remove or edit the existing one.

The syntax I think is
ln -s (path of something, not sure what) (path of something, not sure what) (space) (dot)

I'm not completely new to bash shell commands, but haven't used symlinks, and using a gui in linux is entirely new to me. I'm just not getting this
 
Old 01-09-2006, 04:20 AM   #2
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
check out my /opt/firefox/plugins/ :
Code:
[zhyfly]@[zhy2fly][/opt/firefox/plugins](0)$ls -l                                           
total 20
lrwxrwxrwx  1 zhyfly zhy    58 2005-12-11 20:27 libjavaplugin_oji.so -> /opt/java/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so*
-rwxr-xr-x  1 zhyfly zhy 19224 2005-11-12 09:00 libnullplugin.so*
[zhyfly]@[zhy2fly][/opt/firefox/plugins](0)$
and for the symlink of jre I think you should type the command:
Code:
#ln -s /opt/java/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so /opt/firefox/plugins/
just take mine for example, and you can solve the problem according to your situation.
 
Old 01-09-2006, 04:21 AM   #3
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,296

Rep: Reputation: Disabled
/pathway to where I put java/jre1.5.0_05/plugin/i386/ns7-gcc29/target plugin

shows up a link to /home/myname/firefox/plugins/....link file

means (1) home dir you name is correct
and (2) I have a more recent JRE but older compiler

(3) I created link using KDE Konqueror mouse control option.....link here

(4) java was installed with root powers
 
Old 01-09-2006, 04:25 AM   #4
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
Quote:
Originally Posted by sunlion
lrwxrwxrwx 1 myusername myusername 67 Jan 8 04:47 libjavaplugin_oji.so -> /usr/java/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
Actually this path does not exist because of:
Quote:
Originally Posted by sunlion
$ find / -iname libjavaplugin_oji.so
/home/myusername/firefox1.5/firefox/plugins/libjavaplugin_oji.so
/home/myusername/libjavaplugin_oji.so
How does this library landed in your home-directory and nowhere else, it should be in (java-install-path)/jre/plugin/i386/ns7 or so? How did you installed java? -It seems to me, that it is installed wrong or at least broken. I would try this again and memory the destination folder to where you install it.

But to redierct a link in common you type (for a link: link->old-linked-path):
rm link
ln -s new-linked-path link

Maybe you have to become root first, if you are forced due permissions.

Last edited by Flesym; 01-09-2006 at 08:11 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JRE in Firefox dalponis Linux - Software 2 01-07-2006 11:23 PM
firefox 1.0.4 / jre 1.4.1_02 undef00 Linux - Software 7 08-11-2005 06:18 PM
FC4, Firefox 1.0.4 and JRE 1.4.2 webwolf70 Fedora 11 06-19-2005 02:13 PM
jre blips out Firefox dfowensby Fedora 1 01-26-2005 02:48 AM
Firefox and JRE merchtemeagle Linux - Newbie 3 10-17-2004 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration