LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-18-2005, 09:31 AM   #16
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30

locate should've given you the path as well as the file name. For chmod to work you need the full
path and filename (and toes, chmod a+x is correct. man chmod says "A combination of the letters `ugoa'
controls which users' access to the file will be changed")

The problem with the java-rpm is that it might not tell you where it installs to (correct me if I'm wrong).
The non-rpm will install in the current directory. If you still want to use the rpm and it doesn't tell you where
it installs do a 'find / -name libjavaplugin_oji.so' to find the path to the plugin.

- Peder
 
Old 03-18-2005, 09:42 AM   #17
toes
Member
 
Registered: Mar 2005
Location: Arkansas
Distribution: Mandy 2006, FC5
Posts: 154

Rep: Reputation: 30
Thanks for the correction, bunnadik. I conveniently skipped over that entire paragraph.
 
Old 03-18-2005, 10:09 AM   #18
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Concerning java. Using locate comes up with /root/jre-1_5_0_01-linux-i586-rpm.bin. Using find ~ comes up with a long list of files mostly hplip(printer) or mozilla. Does that mean it's in the root directory?

Last edited by simcox1; 03-18-2005 at 10:16 AM.
 
Old 03-18-2005, 10:28 AM   #19
toes
Member
 
Registered: Mar 2005
Location: Arkansas
Distribution: Mandy 2006, FC5
Posts: 154

Rep: Reputation: 30
I just experimented with issuing the recommended 'find' command on my own, and it seems like I just get a resursive 'ls' here, so that may be all you're seeing there. If 'locate' returns exactly '/root/jre-1_5_0_01-linux-i586-rpm.bin' then yes, your java bin file is located in /root. You will, of course, need to be root in order to get there, since normal user access is denied to that directory.
 
Old 03-18-2005, 11:22 AM   #20
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Right I downloaded the non rpm version and have managed to install it in /home/user/jre1.5.0.02. I'll try and get it working now. I think I have to create a link.
 
Old 03-21-2005, 07:09 AM   #21
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
I seem to be in a bit of a jumble now. I downloaded the rpm jre file and couldn't install it. Then I downloaded the non rpm self extracting version and did install it. But I still cant get it linked to fiefox. cd /home/simon/firefox-installer/plugins. Then ln -s /home/simon/jre1.5.0.02/plugin/i386/ns7/libjavaplugin_oji.so. This tells me that ./jre1.5.0.02 etc oji.so file already exists. It might be best to erase both versions of java and start again.
 
Old 03-21-2005, 09:05 AM   #22
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Hmm, you could try adding a dot at the end of the ln-command :
Code:
cd /home/simon/firefox-installer/plugins
mkdir OLD
mv  libjavaplugin* OLD
ln -s /home/simon/jre1.5.0.02/plugin/i386/ns7/libjavaplugin_oji.so .
It shouldn't be nessecery, but who knows.

- Peder
 
Old 03-21-2005, 09:37 AM   #23
prj
Member
 
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177

Rep: Reputation: 30
The . is usually necessary.

Easiest way to make link for us less than old hacks is to open two Konqueror windows, one with the origin and the other with the destination.
Drag the file to be linked to into where you want the link on the other window. The dialog should give options to copy, move or link.
Choose link and job jobbed.
 
Old 03-21-2005, 10:13 AM   #24
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
The . is not necessery in MDK 9.2 or 10.x (nor in FreeBSD 5.2.1).
The man states : "If LINK_NAME is omitted, a link with the same basename as the TARGET is
created in the current directory"

But it won't hurt anyway.

- Peder
 
Old 03-21-2005, 10:42 AM   #25
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Still not working with or without dot. I couldn't seem to find jre in the rpms i got from easyurpmi. Anyway I do feel I've got a lot of things on here I don't need, perhaps a bit of deleting would be good. What's the best way to delete files such as java or firefox which aren't rpm's?
 
Old 03-21-2005, 11:12 AM   #26
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
rm -rf
In your case I'd
Code:
cd /
rm -rf /home/simon/jre1.5.0.02/
rm -rf /home/simon/firefox-installer
Then reinstall firefox and java like I showed in my earlier post.

BTW are you sure you run
ln (space) -s (space) /home/simon/jre1.5.0.02/plugin/i386/ns7/libjavaplugin_oji.so (space) .
The only way I can get a "file already exists" error is if I link the wrong way like
"ln -s TESTLINK /etc/passwd" instead of "ln -s /etc/passwd TESTLINK"

Oh and BTW #2 : is your jre dir really called "jre1.5.0.02" ? Mine is called "jre1.5.0_02" (notice the underscore).

Edit: The easiest way to avoid typing errors is to use the completion function of the shell. If you are in
/home/simon/firefox-installer/plugins and want to create the link just type
"ln -s /home/simon/jre" and press the Tab key. The shell will automagically expand it to the right dir.

- Peder

Last edited by bunnadik; 03-21-2005 at 11:17 AM.
 
Old 03-22-2005, 09:43 AM   #27
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Back again. cd /home/simon/firefox1.0.1/plugins
ln -s /usr/java/jre1.5.0_01/plugin/i386/ns7/libjavaplugin_oji.so

Result: ./libjavaplugin_oji.so File exists.

I must be doing something wrong somewhere. The other thing I'm trying to get working is dvd playback. Kaffeine doesn't work and so I downloaded codecs. The file is all-20050216.tar.bz2. How do I install it? First part is tar xvjf name of file. Not sure what's next. Read me no good.
 
Old 03-22-2005, 10:11 AM   #28
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Show me the output of 'ls -la /home/simon/firefox1.0.1/plugins' and
'ls -la /usr/java/jre1.5.0_01/plugin/i386/ns7/ '
It looks like you already have a link named libjavaplugin_oji.so in /home/simon/firefox1.0.1/plugins.

Did you get another jre, 1.5.0_01 instead of 1.5.0_02 ?

Edit: have you tried restarting firefox and access http://www.javaonthebrain.com/java/rubik/ ?
Perhaps you've already got the link in place.

Regarding kaffeine : http://www.linuxquestions.org/questions/history/291956
You probably need kaffeine from the PLF http://easyurpmi.zarb.org/

- Peder

Last edited by bunnadik; 03-22-2005 at 10:17 AM.
 
Old 03-22-2005, 10:44 AM   #29
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
output from firefox simon@localhost simon]$ ls -la /home/simon/firefox1.0.1/plugins
total 15824
drwxr-xr-x 2 root root 4096 Mar 22 10:50 ./
drwxr-xr-x 11 root root 4096 Mar 21 19:51 ../
-rw-r--r-- 1 root root 16152805 Dec 7 06:51 jre-1_5_0_01-linux-i586.rpm
lrwxrwxrwx 1 root root 55 Mar 21 20:40 libjavaplugin_oji.so -> /root/jre-1_5_0_01/plugin/i386/ns7/libjavaplugin_oji.so
-rwxr-xr-x 1 root root 18840 Feb 25 20:30 libnullplugin.so*

and from the java file:

[simon@localhost simon]$ ls -la /usr/java/jre1.5.0_01/plugin/i386/ns7/
total 144
drwxr-xr-x 2 root root 4096 Mar 21 20:31 ./
drwxr-xr-x 4 root root 4096 Mar 21 20:31 ../
-rwxr-xr-x 1 root root 134116 Dec 7 06:50 libjavaplugin_oji.so*
[simon@localhost simon]$

What I think might have happened is the first time I tried to link it I used /root/jre1.5.0_01 because that 's what came up using locate. However the jre file is actually in /usr/java. So it might not work now. The jre-1_5_0_02 was the non rpm version which I deleted. The rpm version is jre-1_5_0_01. And it's in /usr/java.

The output from the firefox plugins directory above is partly flashing red.


I can see from the output myself that the plugin in firefox is linked to the root/jre file which is incorrect. I need to change it to the usr/java file.


Apparently I can delete the link using rm. Can you tell me the correct command? Is it just rm libjavaplugin_oji.so ?

Last edited by simcox1; 03-22-2005 at 01:52 PM.
 
Old 03-23-2005, 01:02 AM   #30
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Assuming your standing in /home/simon/firefox1.0.1/plugins you can just 'rm libjavaplugin_oji.so' .

- Peder
 
  


Reply



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
installing java... linuxgeek13 Linux - Software 1 10-02-2005 11:28 PM
Help installing java Lakota Mandriva 18 12-12-2004 02:02 AM
installing java kshatriyarules Programming 2 12-02-2004 11:04 AM
Installing java...oy... Jaster Linux - Software 8 11-30-2004 07:58 AM
Installing Java mrl Linux - Newbie 4 05-23-2001 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:53 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
Open Source Consulting | Domain Registration