LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-30-2004, 02:57 PM   #1
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
Java & Firefox


I'm trying to view pages on the net and some tell me that I need to install java, so i downloaded j2re-1_3_1_11-linux-i586.bin and ran the following commands in my home directory...

chmod a+x j2re-1_3_1_11-linux-i586.bin
./j2re-1_3_1_11-linux-i586.bin
and "yes" at the end of the readme

i restarted Firefox went to the site again and got this error again...

This page contains information of a type (application/x-java-vm) that can only be viewed with the appropriate Plug-in.

The page also has the option to download and install the Plug-in; which i have also tried and didn't work. Any suggestions?
 
Old 03-30-2004, 03:04 PM   #2
mako747
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15
Hi,

You should be using j2re1.4.2

You also have to link /firefox/plugins/libjavaplugin_oji.so to /where/you/put /
it/j2re1.4.2_04/plugin/i386/ns610-gcc32/libjavaplugin_oji.so*

Hope this helps
http://plugindoc.mozdev.org/faqs/java.html
 
Old 03-30-2004, 03:05 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You need to create a link between the plugin in the Java directory and the plugin directory in Firebird. Once you create this link, java will work fine in Firefox.
 
Old 03-30-2004, 03:23 PM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
Ok cool, but should i uninstall java-1.3* first or can I just overwrite it? I tried cding to jre1.3.1_11 and make uninstall but that doesn't do anything.
 
Old 03-30-2004, 03:29 PM   #5
mako747
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15
You can leave it be.

The 1_4_2 will create it's own directory .

Just make your link from the plugins directory to the proper one.

Once you have done it type "aboutlugins" in the title bar and you should see that it is installed and enabled.
 
Old 03-30-2004, 03:30 PM   #6
mako747
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15
That should be aboutlugins

Don't know where the happy face thing came from
 
Old 03-30-2004, 03:56 PM   #7
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
Ok, when i install everything and try to ln -s i get this...

matrix@Linux-Powered:~/Firefox/plugins$ ln -s /home/matrix/Libraries/Java/j2re1.4.2_04/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
ln: `./libjavaplugin_oji.so': File exists

run Firefox and still no java?
 
Old 03-30-2004, 04:04 PM   #8
mako747
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15
Hi....

That should be....

matrix@Linux-Powered:~/Firefox/plugins$ ln -s /home/matrix/Libraries/Java/j2re1.4.2_04/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin_oji.so

If there is already an existing libjavaplugin_oji.so in your Firefox/plugins directory then blow it away and run the command again
 
Old 03-30-2004, 04:10 PM   #9
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
Yeah, i figured that out but now the browser crashes. Is this a Firefox bug?
 
Old 03-30-2004, 04:14 PM   #10
Pwnz3r
Member
 
Registered: Jan 2004
Location: Lancaster, OH
Distribution: Gentoo
Posts: 393

Rep: Reputation: 30
I myself emerged Firefox, which built it from the source, and after that Java worked just fine which is helped by Gentoo having Java already in it. It's usually a good idea to build it from the source because it will not only be compiled with your machine's specs in mind, but it will also work a lot better as far as themes and fonts go. Once you do that, the plugins for Mozilla, Epiphany, Galeon, Firefox, and about any other browser go into /usr/lib/nsbrowser/plugins.
 
Old 03-30-2004, 06:39 PM   #11
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Check your gcc version (I think gcc -v) and make sure your system is compiled with a compatible version. See that gcc32 in the plugin path? If you're not using a gcc version 3.2 or later, you may have trouble. If that is the case, try linking to one of the other plugin versions. There should be two or three to choose from.
 
Old 04-01-2004, 10:45 PM   #12
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
I checked gcc and it's the right version...

gcc -v
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/specs
Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.2.3

When i about : plugins everything is "YES"

The page loads java, but as soon as the page loads the browser crashes and exits.
 
Old 04-02-2004, 07:12 AM   #13
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
If I were in your shoes, I'd give Blackdown java a try. It seems to work in situations that Sun's java doesn't.
 
Old 04-02-2004, 05:49 PM   #14
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
These are errors i am getting when i run firefox in the terminal after it crashes...

ALSA lib pcm.c:1908 : (snd_pcm_open_noupdate) Unknown PCM hw:0
java_vm: conf.c:3110: snd_config_update_free: Assertion `update->count > 0 && update->finfo' failed.
INTERNAL ERROR on Browser End: Pipe closed during read? State may be corrupt
System error?:: Interrupted system call
 
Old 04-02-2004, 06:41 PM   #15
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
OK, i figured it out. I had to install the alsa libraries. Cool BUT my sound is choppy if anyone can help me there!
 
  


Reply



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
Firefox & java compu73rg33k Linux - Software 15 06-26-2007 02:20 PM
Firefox&Java Issue jimmydgeek DamnSmallLinux 3 11-19-2005 08:10 PM
Java crashes Firefox & Mozilla, with both plugins lithiumfx Linux - Software 5 08-23-2005 03:07 PM
Java fonts in Linux Firefox & Gnome notify gaim madiyaan Linux - Newbie 0 01-05-2005 12:56 PM
Firefox & Java oneandoneis2 Linux - Software 12 02-19-2004 12:05 PM

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

All times are GMT -5. The time now is 03:11 AM.

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