LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Firefox 0.8 and J2RE 1.4.2_03(Java) (https://www.linuxquestions.org/questions/linux-software-2/firefox-0-8-and-j2re-1-4-2_03-java-154498/)

Comreak 03-07-2004 04:23 AM

Firefox 0.8 and J2RE 1.4.2_03(Java)
 
I installed the above runtime files in my /usr/java dir and created a symlink to the plugin in ns610-gcc32(using the exact path to the plugin dir) in my firefox/plugins dir. When I attempt to run any Java applets through the browser, Firefox closes. I've already searched this forum for solutions but haven't found any that work for me. Thanks in advance.

Andrew Benton 03-07-2004 05:02 AM

It may help if you had an error message to Google on. Try launching Firefox with a command from a terminal. Hopefully, when it crashes it will leave some clue in the terminal.

Comreak 03-07-2004 05:10 AM

I ran firefox through the console and went to dslreports.com and tried running a speed test(java applet). Here's what popped up:

java/lang/NoClassDefFoundError: java/lang/Object

megnin 03-14-2004 03:56 PM

I am having the same problem

I installed Java (j2re-1_4_2_04-linux-i586.rpm) in Redhat 9.0 to /usr/lib/java (there, because some of the instructions I found referenced it in that location).
Firefox is installed at /usr/firefox.

(I have moved both java and firefox directories around trying to get them to work. This just happes to be where they ended up.)

From within the /usr/firefox/plugins directory I typed: "ln -s /usr/lib/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so" at the #console prompt to make a sym link.

Foxfire launches fine, but when I go to a page with a java test applet, Foxfire is killed instantly; before any of the page even appears.

This is what I get at the console when I launch Foxfire from the console:

Code:

[root@localhost firefox]# ./firefox &
[2] 20771
[root@localhost firefox]# Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
INTERNAL ERROR on Browser End: Could not read ack from child process
System error?:: Resource temporarily unavailable

I have no idea what to do from here. Any [newbie friendly] help is greatly appreciated.

Thanks,
David

ima 03-16-2004 07:59 PM

Just wondering if you submitted this question at The Mozilla User Support Forums ?

I am about to install j2re-1_4_2_04-linux-i586-rpm as well, and I run Firefox - so we'll see if it breaks mine too.

megnin 03-16-2004 09:40 PM

I didn't, but I read other posts regarding installing java on Mozilla and Firefox and I followed all of the instructions I found there.

After installing java (J2RE 1.4.2_04), java applets still did not work in Mozilla or Firefox. After following the instructions to creat the symlink in the plugins folder of Firefox, when I go to a web page with a java applet, Firefox exits instantly. No errors, it just closes. I installed the symlink in Mozilla and the same thing happens.

I haven't seen any solutions to this problem.

ima 03-17-2004 04:31 PM

I'll be doing this in SuSE 9.0. I downloaded the rpm.bim, but *I* am such a newbie, I do not know how to extract the RPM from the bin!
Once I figure THAT out, I'll backup, then install, and post my results.

beejayzed 03-17-2004 05:58 PM

To extract the rpm from the bin "run" the bin from the terminal. ie. ./thenameofthe.bin

ima 03-17-2004 06:26 PM

Ah. So simple. (Like me! <G>)
Many thanks. I have just installed it, and then, while on the Sun website, i reviewed the browser registration page(s).

http://java.sun.com/j2se/1.4.2/insta...ux.html#plugin

I encourage comreak to check out this page, and then to use the Manual registration method.

http://java.sun.com/j2se/1.4.2/manua...all_linux.html

I'll post again with my results shortly.

ima 03-17-2004 08:07 PM

OK,
I have completed installing Java 1.4.2_04 under SuSE Linux 9.0 and KDE 3.2, with Firefox 0.8, and it works fine. I visited java enabled webpages to ensure that it operated properly.

Perhaps there is an issue with _03, or perhaps you need to review the manual install instructions. If there is any way I can be of assistance, I will do my (n00b) best to do so. By the way, what distribution are you running?

Good luck!

megnin 03-18-2004 08:28 PM

I'm running Redhat 9.0. I've installed and reinstalled the jre at least a half a dozen times. Still no joy. In both Mozilla 1.6 and Firefox 0.8 as soon as I hit a page with a java applet the browser closes.

ima 03-18-2004 09:06 PM

Quote:

Originally posted by megnin
I'm running Redhat 9.0. I've installed and reinstalled the jre at least a half a dozen times. Still no joy. In both Mozilla 1.6 and Firefox 0.8 as soon as I hit a page with a java applet the browser closes.
But, did you perform a MANUAL install? At the Sun site, there are known issues with Redhat listed. Even though 9 is not listed, I would be suspicious...

see below:

Known Problems on Non-Supported Platforms
The following are known problems on the non-supported versions of Linux.

RedHat 6.2 - On any version of Linux whose kernel was compiled with the CONFIG_IP_TRANSPARENT_PROXY option, behavior in comformance with the API specification is not guaranteed while running as superuser. The default kernel shipped with the RedHat 6.2 distribution is compiled with this option. To avoid incompatibilities associated with this problem, either do not use the Java platform while superuser or else upgrade to a Linux operating system whose kernel was not compiled with the CONFIG_IP_TRANSPARENT_PROXY option. Red Hat 7.1 and later versions ship with the version 2.4 kernel which does not have this problem.

Red Hat 7.0 - When System.exit(int) is invoked, the program never exits with a non-zero value. This problem is apparently due to a bug in the exit function in libc.so library. To avoid this problem, use Red Hat 6.2 or Red Hat 7.1 rather than 7.0.

RedHat Linux 7 Server - You must manually install compat-libstdc++-6.21-2.9.0.0.i386.rpm to prevent "error while loading shared libraries" when using the Java HotSpot VMs. This file is located in the /RedHat/RPMS directory on the RedHat Linux 7 CD-ROM. You may also obtain a copy of this file from http://rpmfind.net. To install the file, use this command:
rpm --install compat-libstdc++-6.21-2.9.0.0.i386.rpm

It is not necessary to manually install compat-libstdc++-6.21-2.9.0.0.i386.rpm if you are using RedHat Linux 7 Workstation.


Checking glibc - You can check your version of glibc using the following command:
ls /lib/libc-*


glibc 2.2-7 - An apparent bug in glibc 2.2-7 causes invalid hostnames of the form a.b.c.d.e to be resolved as a valid address. This bug means that, on platforms that use glibc 2.2-7, methods such as java.net.InetAddresss.getByName(String host) do not always throw UnknownHostException, as they should, when the hostname is invalid.

megnin 03-19-2004 03:10 PM

Quote:

Originally posted by ima
But, did you perform a MANUAL install? At the Sun site, there are known issues with Redhat listed. Even though 9 is not listed, I would be suspicious...
[/SIZE]

I have done both the "online" install you get when you hit a page that says "click here to install this plugin" and done manual installs ...I think, anyway.

Can you tell me what steps I should have done or a web page with manual install instructions? Is it okay to install while logged in as root?

thanks

questone 03-19-2004 09:15 PM

Im having a similar problem although my Firefox Browser doesn't exit. It just doesn't work with java applets. If I goto: Tools>JavaScript Console I get errors such as:

Error: syntax error
Source File: http://us.toto.geo.yahoo.com/toto?s=...0&t=1079737497
Line: 1
Source Code:
<a href="http://rd.yahoo.com/SIG=12aaa03g8/M=201822.1431916.3017245.1363604/D=geocities/S=76001055:NE/EXP=1079823904/A=559073/R=0/SIG=10qpab0qq/*http://photos.yahoo.com/"><img src="http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_photos/y!photos_d1.rev.GIF" w


------------------------------------------------------------------------------------------------
Error: PUwin has no properties
Source File: http://www.geocities.com/js_source/pu5geo.js
Line: 69
------------------------------------------------------------------------------------------------
Error: syntax error
Source File: http://us.toto.geo.yahoo.com/toto?s=...0&t=1079737497
Line: 1
------------------------------------------------------------------------------------------------

Error: document.yl0 has no properties
Source File: http://www.geocities.com/js_source/ygNSLib9.js?v3
Line: 40
------------------------------------------------------------------------------------------------


Quite honestly this is gibberish to me, but maybe it means somthing to you. Also when ever I try to go into a Java environment I get the error msg that "This site requires Java....'cancel or install' but the JRE is installed with a symbolic link in the firefox plugin dir pointing to the right place. The Java console in firefox is recording the errors so I assume java is working to some extent. Not sure what the deal is. Oh and btw I am running MDK10 and KDE 3.2. This problem also occered witht the Moz 1.6 that cam packaged with this distro.

Thanks

PS if you need morer info let me know.

Andrew Benton 03-20-2004 03:59 AM

Javascript has got nothing to do with the Java plugin. Javascript is part of the way webpages are coded, it gives details of things like the size and shape of the popup box you get when you click on a link. You're probably getting errors because the page isn't coded properly.
As for why Java isn't working, are you sure you made the symbolic link correctly? If you type in one wrong character while you're entering the command the link will be pointing into empty space.

questone 03-20-2004 09:19 AM

Quote:

As for why Java isn't working, are you sure you made the symbolic link correctly? If you type in one wrong character while you're entering the command the link will be pointing into empty space

I am positive that its pointing to right place I just double checked. :Pengy:
Yeah I realized what you were saing about the java console not having anything to do with the plugin this morning. Also I made sure that under Tools>options>web features>Enable Java is checked.

Thanks

ima 03-20-2004 09:32 AM

Quote:

Originally posted by megnin
I have done both the "online" install you get when you hit a page that says "click here to install this plugin" and done manual installs ...I think, anyway.

Can you tell me what steps I should have done or a web page with manual install instructions? Is it okay to install while logged in as root?

thanks

First, I will state what I consider to be something incredibly obvious, and it probably is not applicable (you probably did this), but, just in case:

Be sure that Firefox is not running when you install Java.

OK, now that the obvious is out of the way,

I'll quote from the manual install page. A lot of this may be redundant, so if it is, please ignore it! :) Also, remember to search for the files starting at / because they will not be in /.netscape/ but rather, they will be in some FireFox related folder. You may also wish to look for Firebird in case that was installed. If you find it, you might as well remove the entire folder since its obsolete now.

OPTIONAL:
This is an assumption that you are running KDE desktop. If you are not, ignore the following paragraph...

If you find the files in Konquerer, you may wish to consider removing (or renaming) them as well, and then adding Java to for Konquerer again to update it. Or, you may wish to manually update KDE using rpm -Fvh *.rpm. I downloaded the entire folder from the KDE mirror so I would have everything I needed.
(Of course, I also upgraded to KDE 3.2.1, but that ¡s another story altogether. :) )

Quote:

Uninstall previous installation of the Java Plug-in, if applicable.

rm -fr $HOME/.netscape/java
rm $HOME/.netscape/plugins/javaplugin.so
rm $HOME/.netscape/plugins/libjavaplugin.so

One or more of these files may not exist on your machine, depending on which previous versions of Java Plug-in you have installed.
When I followed the instructions to install manually, it did not work either because it was for mozilla, not firefox. So, I had to think slightly outside the box.

The first thing I did was search for files named firefox. Once I located the folders, I noted that it was in two locations. I opened another search to search for plugins.

I looked in all of the plugin folders for the symbolic link. I did not find it. Next, I opened a terminal window and changed directory to the plugin folder for firefox. (I did this in BOTH folders btw since I did not know which was the correct one.)

I ran the following:
Quote:

ln -s <JRE>/plugin/i386/ns610/libjavaplugin_oji.so
Replace <JRE> with the absolute path for the JRE you installed (Note - try grabbing the new version, _04 just to be up to date.)
In my case, with SuSE, I had to do this as well:
Quote:

For the SuSE 8.1 or higher Mozilla browser, replace ns610 with ns610-gcc32 in the ln command line above.
I do not know if this pertains to RH9.

When I was done, I restarted X.

I searched for new plugins, then did a Google search for java test and hit a page to confirm java worked. It did.

I believe the key was ensuring that I was in the correct folder in terminal when I ran the command. I probably overdid it by running the command from two plugin folders, but it seems to work!

Don't give up. It's probably something incredibly simple we are overlooking. This is a learning experience for me as well, so I am happy to try to help you work through this.

Hang in there. You will end up with joy in the end, I am certain! :)

megnin 03-20-2004 05:31 PM

Well, thank you very much :-)

Yep. I had done all those steps. At one point I thought that the "something incredibly simple" may perhaps be a period on the end of the symlink. In one set of directions it showed the file as libjavaplugin_oji.so. and it said "...and don't forget to include the period on the end."

So, from within the plugins directory of Mozilla 1.2.1, Mozilla 1.4.2, Mozilla 1.6 and Foxfire, I typed: ln -s /usr/lib/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so when that didn't work (the browsers closed instantly up hitting a web page with a java applet) I tried it like this: ln -s /usr/lib/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so.

The only difference being that on the second one I included the period on the end. I'm not sure that's even correct because I haven't seen it that way on most of the instructions.

Just some sanity checking...
I deleted the symlings before creating new ones in the plugins directiry.

Relevant locations:
/usr/firefox/plugins (there is also a libnullplugin.so file in the plugins directory in addition to the symlink)

/usr/lib/mozilla-1.2.1/plugins
/usr/lib/mozilla-1.4.2/plugins
/usr/local/mozilla/plugins <-- Mozilla 1.6
/usr/local/mozilla/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so (executable) (?)

I installed j2re-1_4_2_04-linux-i586.bin
I also tried j2re-1_4_2_04-linux-i586.rpm when the first one didn't work.

/usr/lib/java


This is very frustrating, because I actually can read and follow directions. This isn't my first computer, I've been building and configuring PCs with various OSs, including AmigaOS, Redhat, Slackware, SuSE, Mandrake, BeOS, Novell, Win 3.11/95/Bob/98/Me/NT3.1/NT4.0/2000/XP/2003 for over 20 years. I have Microsoft Professional Certifications. Redhat has been by far the most frustrating OS I have ever worked with.

After days or weeks of pulling my hair out over little problems like this it sometimes turns out to be some silly hardware incompatability or faulty piece of hardware. I have been struck dumb by some problems that have been cured by replacing a video card.

Anyway... I included the above paths and so forth in the hopes that you would spot something that I have missed or not thought of.

Thanks for helping me work throug this!

ima 03-20-2004 09:08 PM

I have the libnullplugin.so as well. That did not seem to have any bearing on it. I wanted to touch base tonight, but I am brain dead at the moment (:)) so I will check it out further tomorrow.

One last suggestion - Have you removed firefox and reinstalled it from root?
I'm grasping at straws.

BTW - I am a Linux n00b, but I am also somewhat experienced in other OS's - and there's nothing like a good challenge, and it's even better when you overcome it!

Cheers! (and Roebuck!)

Andrew Benton 03-21-2004 05:29 AM

Quote:

Originally posted by megnin

So, from within the plugins directory of Mozilla 1.2.1, Mozilla 1.4.2, Mozilla 1.6 and Foxfire, I typed: ln -s /usr/lib/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so when that didn't work (the browsers closed instantly up hitting a web page with a java applet) I tried it like this: ln -s /usr/lib/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so.

Mozilla 1.2.1 Is compiled with gcc-2.9 and so would need to be linked to the /usr/lib/java/plugin/i386/ns610/libjavaplugin_oji.so , the other three are compiled with gcc-3.2 and so would need to be linked to the one you said,
ln -s /usr/lib/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
There should be no period at the end of the line by the way. I suspect that you may be getting some strange interactions between the different versions of Mozilla that you seem to have installed. Do you have more than one version of Java installed? That can cause problems too. One other thing you could try is to make a plugins folder in your Mozilla profile and put the symbolic link in there. That's what I do as I often update Firefox and with the plugins in the Mozilla profile I don't need to reinstall them, it scans ~/.mozilla/plugins automatically.
Code:

cd ~/.mozilla
mkdir plugins
cd plugins
ln -s /usr/lib/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin_oji.so


megnin 03-21-2004 08:28 AM

Ahh. Cool. Thank you. I think I'll try to uninstall any and reinstall java, then I'll make that plugins directory in the Mozilla profile. I like that method. Seems much easier than redoing the symlink every time you upgrade.

Thanks again!

questone 03-21-2004 09:17 AM

---Mandrake 10 - Kde 3.2 - Firefox -----
I have followed these instructions, and a few things have happened. Previously if I went to a site with a Java applet I would get an error and a message that I required a plugin and I could auto dl. Now after manually installing java to /usr/lib/java and creating the symlink and placing that in my mozilla profile, I don't get the message that I require the plugin however the applet doesn't load. Java just doesn't seem to be working. I have tried several sites.

Also is there a command that will allow me to see if I have multiple instances of java installed.

Thanks
steve

Edit:
Quote:

cd ~/.mozilla
mkdir plugins
cd plugins
ln -s /usr/lib/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin_oji.so
the code for this symlink should read: ln -s /usr/lib/java/j2re1.4.2_04/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin_oji.so

JAVA WORKS!!!!!!!!!!!

Andrew Benton 03-21-2004 10:20 AM

Yes, I should have said that command was addressed at the previous poster who had posted where java is installed on their machine. If the ln -s command isn't perfect the symbolic link will be pointing into empty space and Java won't work. Well done for working it out and getting it fixed.

Benzman1 03-22-2004 09:57 PM

Quote:

Originally posted by Andrew Benton
Mozilla 1.2.1 Is compiled with gcc-2.9 and so would need to be linked to the /usr/lib/java/plugin/i386/ns610/libjavaplugin_oji.so , the other three are compiled with gcc-3.2 and so would need to be linked to the one you said,
ln -s /usr/lib/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
There should be no period at the end of the line by the way. I suspect that you may be getting some strange interactions between the different versions of Mozilla that you seem to have installed. Do you have more than one version of Java installed? That can cause problems too. One other thing you could try is to make a plugins folder in your Mozilla profile and put the symbolic link in there. That's what I do as I often update Firefox and with the plugins in the Mozilla profile I don't need to reinstall them, it scans ~/.mozilla/plugins automatically.
Code:

cd ~/.mozilla
mkdir plugins
cd plugins
ln -s /usr/lib/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin_oji.so


This worked for me...Thanks for your post

Devinci 04-02-2004 11:31 AM

Fixing the firefox java problem
 
http://java.sun.com/j2se/1.4.2/manua...all_linux.html

Devinci 04-02-2004 11:36 AM

Fixing the firefox java problem
 
First thing to do is install the JRE, if you are a newbie like myself you might want to install from the RPM, fron Sun you will download the rpm.bin, and install the JRE, then go to http://java.sun.com/j2se/1.4.2/manua...ll_linux.html, and follow the directions to THE LETTER. After that it still won't work until you put a copy of the plugin into the actual plugins folder, but do that last. Only because I did it that way and I know it works. The command I ran to make the link was.
ln -s /usr/java/j2re1.4.2_04/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
That is the ABSOLUTE path to the java plugin, run that command acoording too the directions on that page, then copy the plugin from firefox to /firefox/plugins.
It WILL work.

Andrew Benton 04-02-2004 12:07 PM

Re: Fixing the firefox java problem
 
Quote:

Originally posted by Devinci
After that it still won't work until you put a copy of the plugin into the actual plugins folder,
Definitely don't copy it into the plugins folder. Leave the libjavaplugin_oji.so where it is and make a symbolic link.

Linux~Powered 04-02-2004 12:50 PM

People i am having the same problem and tried just about everything i could. Here are my steps that i did in order below...maybe someone can help me here.

First i downloaded Firefox-0.8 untared it in my /home dir and it works fine. I then downloaded j2re-1_4_2_04*bin. I then mv j2re*bin to /usr/java. cd /usr/java. Then...
chmod +x j2re-1_4_2_04-linux-i586.bin & ran ./j2re*bin went through the read me and entered "Yes" at the end and it started & finished the install process. I cd firefox/plugins and make the symbolic link to /usr/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so Check to make sure my symbolic link is right i ls -al and it shows me that libjavaplugin_oji.so is linked to /usr/java/plugin*, so it is installed...right? Well i go to a page that requires Java and as soon as the page loads Firefox crashes and exits. On the web page that required java it has an option to see if your browser is java ready, so i check to see that it is and after running the test it shows that it is in fact java ready. I have installed multiple times to no success. My gcc is 3.2 so there should be no problem there. I have tried Mozilla-1.6 and java doesn't work in it either. Also when i
about : plugins everything checks out clean (meaning everything is YES).

questone 04-03-2004 11:35 AM

Try
#chown -R user:group /usr/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

I had the same problem and it seemed that firefox didn't have permission to execute java.

Linux~Powered 04-03-2004 11:37 AM

I figured it out. I had to install alsa-libs. It works fine now...:cool:

wolfao 06-17-2004 09:02 AM

It is working!
 
Hello, my distro is Debian.
Before, I tried many times to get J2re working with mozilla and firefox, however It didn't work. Now I discover the problem, we should use the dot bin file from Sun's site not the dot rpm one (with alien).

{use j2re-1_4_2_04-linux-i586.bin instead of j2re<...>.rpm.bin (I was using alien to convert to deb <== bad way) }

Now it is working!

code:
$ su
$ mkdir /usr/local/java
$ cp j2re<...>.bin /usr/local/java
$ cd /usr/local/java
$ chmod 777 j2re<...>.bin
$ ./j2re<...>.bin { space, space ... yes ...}
$ rm /usr/local/java/j2re<...>.bin
$ cd /usr/lib/mozilla/plugins
$ ln -s /usr/local/java/j2re<...>/plugin/i386/ns610-gcc32/libjavaplugin_oji.so { for mozilla }
$ cd /usr/lib/mozilla-firefox/plugins
$ ln -s /usr/local/java/j2re<...>/plugin/i386/ns610-gcc32/libjavaplugin_oji.so { for firefox }

Hope it helps and good luck !!! :)

madamox 12-09-2004 02:38 AM

j2se jre
 
i am getting the same error with j2se jre running any java applet, even if i run java -version.... if i get this figured out i will post here


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