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.


All times are GMT -5. The time now is 02:01 AM.