LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-17-2011, 01:00 AM   #1
yahyaotaif
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: 0
Unhappy Java Applet (BackTrack)


Hi all,

I installed java applet for Firefox. It seems that I get the same message all the time "Install missing plugins". The path libjavaplugin_oji.so is located at:

/usr/lib/mozilla/plugins/jre-1.6.0_25/usr/java/jre1.6.0_25/plugin/i386/ns7-gcc29

Is there something wrong with the path ?

Appreciate your help
 
Old 05-17-2011, 10:41 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Hi,

The JRE can be located whereever convenient on your system, so, yes, this path (assuming the JRE is there) is okay. However, the path seems as if you unzipped the contents and placed it somewhere, did you follow the instructions for installing the bin file?

What you need to do is make a link in the .mozilla/plugins folder (in the console):

Quote:
cd .mozilla
mkdir plugins
cd plugins
ln -s /usr/lib/mozilla/plugins/jre-1.6.0_25/usr/java/jre1.6.0_25/plugin/i386/ns7-gcc29/libjavaplugin_oji.so libjavaplugin_oji.so
That's it, but, I am somewhat puzzled about your path, usually you'd get something like this:

/usr/share/java/jre/plugin/i386/ns7/libjavaplugin_oji.so

Assuming you followed the install procedure and started of in /usr/shared, the installation is well documented, by the way...

Lemme know how this rolls!

Thor
 
Old 05-18-2011, 12:58 AM   #3
yahyaotaif
LQ Newbie
 
Registered: May 2011
Posts: 3

Original Poster
Rep: Reputation: 0
same old same old

Thank You Thor for replying!

I couldn't get it to work. I tried but it seems to be the same issue. Is there any other way around ?

If there's no solution then I'll have to use windows on my virtual box to access java applet based websites

Yahya
 
Old 05-18-2011, 09:47 AM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
If there's no solution then I'll have to use windows on my virtual box to access java applet based websites
NOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!! Java works on Linux! Java and Linux are a match made in heaven (well, I am a Java developer, so I'm somwhat biassed...)

Okay, let's recap, maybe even redo the steps (examples given with the plugin I used, your version will be a bit higher, that's okay)

Download the JRE
Get root rights
Copy the downloaded file in /opt
Go to the folder you just placed the installer into
Execute this command

Quote:
chmod +x jre-6u21-linux-i586.bin
Then, execute that installer

Quote:
./jre-6u21-linux-i586.bin
A lot of text makes its way on to the screen...

Look at the contents now

Quote:
ls -al
Saw a folder called "java" ? Good
Leave root mode
go to your home folder
enter

Quote:
cd .mozilla
The dot is important, that folder is hidden, hence the dot...
If there is no folder called "plugins" make one and enter it
execute this command

Quote:
ln -s /opt/java/jre/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so
(if you're not sure, but all of the above is the same, copy-n-paste this command)
There's not a lot you can miss, if the target does'nt exist (typo in the above command) the system will not make a link
Open Firefox, time to see where we've landed and enter this for a URL : "aboutlugins" (about - colon - plugins without spaces, the page turns this into a smiley, figure that) and see if the Java plugin is in the list.

If any-thing (at all) is unclear, post a reply, I will keep this thread in my watch list!

Wellness

Thor

Last edited by ButterflyMelissa; 05-18-2011 at 09:52 AM.
 
Old 05-18-2011, 07:19 PM   #5
yahyaotaif
LQ Newbie
 
Registered: May 2011
Posts: 3

Original Poster
Rep: Reputation: 0
No hope Thor

lrwxrwxrwx 1 root root 50 2011-05-18 20:05 libjavaplugin_oji.so -> /opt/java/jre/plugin/i386/ns7/libjavaplugin_oji.so


It's weird that the java folder you said I should be seen wasn't in the jre-6u25-linux-i586.bin. But I see it now in the path above.

Still doesn't work! I don't know if there's any collision between existed files with the same name as libjavaplugin_oji.so
 
Old 05-19-2011, 09:43 AM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
lrwxrwxrwx 1 root root 50 2011-05-18 20:05 libjavaplugin_oji.so -> /opt/java/jre/plugin/i386/ns7/libjavaplugin_oji.so
Wait-wait-wait! Noticed the OWNER? That's Root. You (as User) do not have any rights here. Enter the link in YOUR account, or let the root "give" ownership using chown for that:

Quote:
chown you:yourgroup libjavaplugin_oji.so
To find out in what group you are (in case you dont know, I dont know my group, so I need to "peek" sometimes too)

Quote:
more /etc/passwd
You'll find some "users" - you should be in there. The structure is

user : x : userID : groupID : (more stuff...)

Separated by a colon.

Lemme know where we are

Thor
 
  


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
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Need a Java Applet to utilize Java Script Functions circuit_girl Programming 3 04-11-2009 09:55 PM
JAVA JRE installation to view java applet through browser dipenchaudhary Linux - Software 1 01-23-2006 09:20 AM
Java applet error: "Applet Failed" nro Programming 1 08-28-2004 05:52 PM

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

All times are GMT -5. The time now is 12:56 AM.

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