LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2004, 12:21 PM   #1
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
creating java plugin for firefox


To All:

I am having trouble getting java to work with Firefox.
Fyi, I have Xandros 2.0 which use linux kernel 2.4.22-x1.
On Firefox FAQ, it tells me to install JRE 1.4.2. So on
Sun's website, http://java.sun.com/j2se/1.4.2/download.html,
I downloaded J2EE 1.4 SDK, a file named

j2eesdk-1_4-linux.bin

[I hope I downloaded the right file - correct me if I didn't.]

On a terminal I ran

./j2eesdk-1_4-linux.bin

and it successfully installed on

$HOME/SunWappserver2 .

Now what? I need to add java plugin into firefox, but
how?

Where is the Mozilla Firefox plugins directory? I.e.,
firefox FAQ gives:

change to your Mozilla Firefox plugins directory

Also, I have no directory,

/usr/java/j2re1.4.2_05/plugin/i386/ns610-gcc32/libjavaplugin_oji.so,

so how can I link it (the firefox FAQ wants to link this)???

[I'm confused. The firefox FAQ keeps talking about
JRE 5.0 RPM instead of JRE 1.4.2.]

Sheng-Chieh
 
Old 10-25-2004, 12:27 PM   #2
wimdh
LQ Newbie
 
Registered: Aug 2004
Location: Dendermonde, Belgium
Distribution: Ubuntu latest
Posts: 28

Rep: Reputation: 15
You have to install the virtual machine (Java VM)
It's on java.sun.com.
 
Old 10-25-2004, 12:47 PM   #3
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
this may help

Firefox plugins are installed in the
<where you installed firefix>/firefox/plugins directory.

the base firefox diretory is where you untarred you firefox tarball

you normally don't copy the files to it, just link it from the source .. so if you donwload java vm, then pick up

libjavaplugin_oji.so

and link it here

hope this helps
 
Old 10-25-2004, 12:48 PM   #4
sheds
Member
 
Registered: Oct 2004
Location: Costa Rica
Distribution: Mandrake 9.1
Posts: 30

Rep: Reputation: 15
I have the same problem, i downloaded the j2sdk 1.4 and tried to install it, but somehow it does not.

I did the following

1. chmod +x j2sdk-_4_2_06-linux-i586-rpm.bin
2. The first step creates the .rmp with the same name.
3. I tried then to make or make install but something like bash not found or something like that. appeared.

What do i do now?
 
Old 10-25-2004, 01:10 PM   #5
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Original Poster
Rep: Reputation: 30
Thank you for replying.

It still not working. Maybe I did something wrong.
I link it using

ln -s ~/SUNWappserver2/jdk/jre/plugin/i386/ns610/libjavaplugin_oji.so .

in the firefox plugin directory,

~/xdisk/download/firefox/firefox-installer/plugins .

So now

ls -l ~/xdisk/download/firefox/firefox-installer/plugins

gets

lrwxrwxrwx 1 shengchieh shengchieh 75 2004-10-25 10:59 libjavaplugin_oji.so -> /home/shengchieh/SUNWappserver2/jdk/jre/plugin/i386/ns610/libjavaplugin_oji.so
-rwxr-xr-x 1 shengchieh shengchieh 18840 2004-10-01 11:55 libnullplugin.so

Java still does not work on Firefox. Did I do something wrong or missing something else?

Sheng-Chieh
 
Old 10-25-2004, 01:21 PM   #6
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
Sheds: You can't chmod on rpm files and hope anything will happen.

To install binary rpms .. you have to use rpm command.
in your case .. rpm -ivh java-----what-ever---rpm---bin will do it.


Sheng.

I don't konw your setup, but please make sure that you are runnign "firefox" from the directory where you put the plug in.

I can't see why this won't be working.
 
Old 10-25-2004, 03:21 PM   #7
sheds
Member
 
Registered: Oct 2004
Location: Costa Rica
Distribution: Mandrake 9.1
Posts: 30

Rep: Reputation: 15
I ran rpm -ivh j2sdk....rpm and it says the package is already installed. I guess that i am missing the plugin part for mozilla. Where do i tell mozilla to start using the jvm that comes with the entire j2sdk package? Or am i completely lost?

Last edited by sheds; 10-25-2004 at 04:02 PM.
 
Old 10-25-2004, 09:42 PM   #8
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Original Poster
Rep: Reputation: 30
I started again, but still no success. I downloaded

j2re-1_4_2_06-linux-i586-rpm.bin .

logged in as root using su. Typed

rpm -ivh j2re-1_4_2_06-linux-i586-rpm.bin

and then linked into the firefox plugin directory, i.e., used

ln -s /opt/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so .

in the firefox plugins directory.
So now

ls -l ~/xdisk/download/firefox/firefox-installer/plugins

gets

lrwxrwxrwx 1 shengchieh shengchieh 75 2004-10-25 10:59 libjavaplugin_oji.so -> /opt/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
-rwxr-xr-x 1 shengchieh shengchieh 18840 2004-10-01 11:55 libnullplugin.so

I also tried running firefox from the plugins directory, i.e., in

~/xdisk/download/firefox/firefox-installer/plugins

I ran

../firefox .

Everything looks correct, but still no java with firefox. So now, I'm trying to
figure out what else may have gone wrong.

The version of gcc is higher than the requested 3.2.3, i.e.,

gcc -v

gives

gcc version 3.3.2 20031005 (Debian prerelease) .

What else should I be checking?

Thanks in advanced for any help/suggestion.

Sheng-Chieh
 
Old 10-25-2004, 11:16 PM   #9
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
Well, I hadn't done this for a while, so had to look back.

You should use Java Run Time Env. .. .5.0 version is the current


Cut and paste the link below.

http://javashoplm.sun.com/ECom/docs/...actionId=noreg

into your browser and it will take you to the sun site.

Select
Either of the files .. (for Linux) .. the one with only .bin extension will have to be run to create the rpm file .. so it's better to get the rpm itself

Isntall the RPM ..

I don't remember it .. but I think it asks you where you want to install .. and you should be able to do that.

rpm command doesn't tell you much .. if you want more info use -vv in the command line like rpm -ivvh

let me know if it helps.

you can always reinstall package with rpm ..
rpm -e removes previous install (if ther e is no conflict)

rpm -U upgrades (to a newver version)
 
Old 10-26-2004, 04:03 AM   #10
linuxboy_inside
Member
 
Registered: Oct 2003
Location: Philippines
Distribution: slackware
Posts: 37

Rep: Reputation: 15
go to the directory where the firefox extracted/installed and type this:

ln -s /usr/java/j2re1.4.2_05/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

remember remove the current link you created...


cheers
 
Old 10-26-2004, 11:48 AM   #11
clarks
Member
 
Registered: Aug 2003
Location: Georgia, US
Distribution: Ubuntu 7.10 - "Gutsy Gibbon"
Posts: 107

Rep: Reputation: 15
If I remember correctly, there should be a folder in your home directory ".firefox". In order to see this you will have to select "show hidden files" from the View option on your menu bar (KDE).
In this folder is your plugins folder. Look and make sure.
If you have located your plugin folder, open a terminal and cd to the plugin folder. Next, type:

ln -s /fullpathnametojavaplugin

This should take care of things
 
Old 10-26-2004, 09:22 PM   #12
bad_andy
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1/Slackware 10.0
Posts: 154

Rep: Reputation: 30
I just followed these instructions a few minutes ago, and Java is now installed and working!

http://www.linuxquestions.org/questi...171#post921171
 
Old 10-27-2004, 02:51 PM   #13
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Original Poster
Rep: Reputation: 30
Thanks to everybody for helping! I finally got java working with
Firefox. I reinstalled firefox and j2re1.4.2_06 into /usr/local/
as root using the techique from the link given by bad-andy, i.e.,

http://www.linuxquestions.org/quest...1171#post921171

Again, thanks!

Sheng-Chieh
 
Old 10-27-2004, 05:17 PM   #14
bad_andy
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1/Slackware 10.0
Posts: 154

Rep: Reputation: 30
Glad to help out. That might've been my first useful contribution to this forum. Maybe I'm moving from "newbie" status to "semi-newbie". Yes! I'm so proud!
 
  


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
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
java plugin for firefox velska Linux - Software 8 04-15-2006 07:00 PM
Firefox 1.0.1 and Java 1.5 plugin: no go Kropotkin Linux - Software 8 03-19-2005 01:01 PM
Java Plugin for Firefox wiskic10_4 Linux - Software 3 12-17-2004 08:09 PM
java plugin for firefox wi_slacker Slackware 14 05-29-2004 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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