LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-07-2004, 05:23 AM   #1
Comreak
Member
 
Registered: Jan 2003
Distribution: Ubuntu 5.04
Posts: 32

Rep: Reputation: 15
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.
 
Old 03-07-2004, 06:02 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
Old 03-07-2004, 06:10 AM   #3
Comreak
Member
 
Registered: Jan 2003
Distribution: Ubuntu 5.04
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 03-14-2004, 04:56 PM   #4
megnin
LQ Newbie
 
Registered: Mar 2004
Location: Fort Lauderdale, Florida
Distribution: RedHat 9.0
Posts: 13

Rep: Reputation: 0
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
 
Old 03-16-2004, 08:59 PM   #5
ima
Member
 
Registered: Jan 2004
Location: Pennsylvania
Distribution: I've checked out a bunch
Posts: 80

Rep: Reputation: 15
Lightbulb

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.
 
Old 03-16-2004, 10:40 PM   #6
megnin
LQ Newbie
 
Registered: Mar 2004
Location: Fort Lauderdale, Florida
Distribution: RedHat 9.0
Posts: 13

Rep: Reputation: 0
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.
 
Old 03-17-2004, 05:31 PM   #7
ima
Member
 
Registered: Jan 2004
Location: Pennsylvania
Distribution: I've checked out a bunch
Posts: 80

Rep: Reputation: 15
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.
 
Old 03-17-2004, 06:58 PM   #8
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Rep: Reputation: 30
To extract the rpm from the bin "run" the bin from the terminal. ie. ./thenameofthe.bin
 
Old 03-17-2004, 07:26 PM   #9
ima
Member
 
Registered: Jan 2004
Location: Pennsylvania
Distribution: I've checked out a bunch
Posts: 80

Rep: Reputation: 15
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.
 
Old 03-17-2004, 09:07 PM   #10
ima
Member
 
Registered: Jan 2004
Location: Pennsylvania
Distribution: I've checked out a bunch
Posts: 80

Rep: Reputation: 15
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!
 
Old 03-18-2004, 09:28 PM   #11
megnin
LQ Newbie
 
Registered: Mar 2004
Location: Fort Lauderdale, Florida
Distribution: RedHat 9.0
Posts: 13

Rep: Reputation: 0
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.
 
Old 03-18-2004, 10:06 PM   #12
ima
Member
 
Registered: Jan 2004
Location: Pennsylvania
Distribution: I've checked out a bunch
Posts: 80

Rep: Reputation: 15
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.
 
Old 03-19-2004, 04:10 PM   #13
megnin
LQ Newbie
 
Registered: Mar 2004
Location: Fort Lauderdale, Florida
Distribution: RedHat 9.0
Posts: 13

Rep: Reputation: 0
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
 
Old 03-19-2004, 10:15 PM   #14
questone
LQ Newbie
 
Registered: Mar 2004
Location: Oshkosh, WI U.S.A.
Distribution: Mandrake 10.0
Posts: 17

Rep: Reputation: 0
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.

Last edited by questone; 03-19-2004 at 10:25 PM.
 
Old 03-20-2004, 04:59 AM   #15
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
  


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
mozilla firefox and j2re wrongman Linux - Software 2 05-12-2004 09:54 AM
java j2re . bin nOOb1kanobee Linux - Newbie 27 02-09-2004 06:46 AM
j2re (java) on Fedora 1 & Mozilla 1.4.1 TheRealDeal Fedora 1 12-10-2003 10:32 PM
Java J2re , why doesnt it make a directory? Ogledbyoldmen Linux - Software 2 12-03-2003 09:48 PM
Where can I get j2re (java) for RH 9.0? TippyToes Linux - General 5 06-17-2003 12:37 PM

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

All times are GMT -5. The time now is 05:23 PM.

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