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.
|
 |
|
03-07-2004, 04:23 AM
|
#1
|
Member
Registered: Jan 2003
Distribution: Ubuntu 5.04
Posts: 32
Rep:
|
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.
|
|
|
03-07-2004, 05:02 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
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.
|
|
|
03-07-2004, 05:10 AM
|
#3
|
Member
Registered: Jan 2003
Distribution: Ubuntu 5.04
Posts: 32
Original Poster
Rep:
|
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
|
|
|
03-14-2004, 03:56 PM
|
#4
|
LQ Newbie
Registered: Mar 2004
Location: Fort Lauderdale, Florida
Distribution: RedHat 9.0
Posts: 13
Rep:
|
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
|
|
|
03-16-2004, 07:59 PM
|
#5
|
Member
Registered: Jan 2004
Location: Pennsylvania
Distribution: I've checked out a bunch
Posts: 80
Rep:
|
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.
|
|
|
03-16-2004, 09:40 PM
|
#6
|
LQ Newbie
Registered: Mar 2004
Location: Fort Lauderdale, Florida
Distribution: RedHat 9.0
Posts: 13
Rep:
|
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.
|
|
|
03-17-2004, 04:31 PM
|
#7
|
Member
Registered: Jan 2004
Location: Pennsylvania
Distribution: I've checked out a bunch
Posts: 80
Rep:
|
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.
|
|
|
03-17-2004, 05:58 PM
|
#8
|
Member
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686
Rep:
|
To extract the rpm from the bin "run" the bin from the terminal. ie. ./thenameofthe.bin
|
|
|
03-17-2004, 08:07 PM
|
#10
|
Member
Registered: Jan 2004
Location: Pennsylvania
Distribution: I've checked out a bunch
Posts: 80
Rep:
|
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!
|
|
|
03-18-2004, 08:28 PM
|
#11
|
LQ Newbie
Registered: Mar 2004
Location: Fort Lauderdale, Florida
Distribution: RedHat 9.0
Posts: 13
Rep:
|
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.
|
|
|
03-18-2004, 09:06 PM
|
#12
|
Member
Registered: Jan 2004
Location: Pennsylvania
Distribution: I've checked out a bunch
Posts: 80
Rep:
|
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.
|
|
|
03-19-2004, 03:10 PM
|
#13
|
LQ Newbie
Registered: Mar 2004
Location: Fort Lauderdale, Florida
Distribution: RedHat 9.0
Posts: 13
Rep:
|
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
|
|
|
03-19-2004, 09:15 PM
|
#14
|
LQ Newbie
Registered: Mar 2004
Location: Oshkosh, WI U.S.A.
Distribution: Mandrake 10.0
Posts: 17
Rep:
|
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 09:25 PM.
|
|
|
03-20-2004, 03:59 AM
|
#15
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
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 04:38 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
|
|