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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-25-2004, 12:21 PM
|
#1
|
Member
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472
Rep:
|
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
|
|
|
10-25-2004, 12:27 PM
|
#2
|
LQ Newbie
Registered: Aug 2004
Location: Dendermonde, Belgium
Distribution: Ubuntu latest
Posts: 28
Rep:
|
You have to install the virtual machine (Java VM)
It's on java.sun.com.
|
|
|
10-25-2004, 12:47 PM
|
#3
|
Member
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315
Rep:
|
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
|
|
|
10-25-2004, 12:48 PM
|
#4
|
Member
Registered: Oct 2004
Location: Costa Rica
Distribution: Mandrake 9.1
Posts: 30
Rep:
|
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?
|
|
|
10-25-2004, 01:10 PM
|
#5
|
Member
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472
Original Poster
Rep:
|
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
|
|
|
10-25-2004, 01:21 PM
|
#6
|
Member
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315
Rep:
|
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.
|
|
|
10-25-2004, 03:21 PM
|
#7
|
Member
Registered: Oct 2004
Location: Costa Rica
Distribution: Mandrake 9.1
Posts: 30
Rep:
|
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.
|
|
|
10-25-2004, 09:42 PM
|
#8
|
Member
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472
Original Poster
Rep:
|
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
|
|
|
10-25-2004, 11:16 PM
|
#9
|
Member
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315
Rep:
|
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)
|
|
|
10-26-2004, 04:03 AM
|
#10
|
Member
Registered: Oct 2003
Location: Philippines
Distribution: slackware
Posts: 37
Rep:
|
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
|
|
|
10-26-2004, 11:48 AM
|
#11
|
Member
Registered: Aug 2003
Location: Georgia, US
Distribution: Ubuntu 7.10 - "Gutsy Gibbon"
Posts: 107
Rep:
|
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
|
|
|
10-27-2004, 02:51 PM
|
#13
|
Member
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472
Original Poster
Rep:
|
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
|
|
|
10-27-2004, 05:17 PM
|
#14
|
Member
Registered: Aug 2004
Distribution: Mandrake 10.1/Slackware 10.0
Posts: 154
Rep:
|
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! 
|
|
|
All times are GMT -5. The time now is 01:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|