LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-24-2010, 11:14 AM   #1
schachwizard
Member
 
Registered: Sep 2010
Location: Philly
Distribution: OpenSuse
Posts: 67

Rep: Reputation: 3
Java doesn't always work


I believe I've installed all the multimedia plugins I need, but Java doesn't seem to work well.

For example, at:
http://www.ludochess.com/jester_eng/jester_eng.html
The java applet does not load, in either Firefox or Chromium. It sometimes crashes the page. I've tried refreshing, but it doesn't help.

However, at other pages, like:
http://home.kpn.nl/fredvonk/rushhour.htm
Java works. Still, I sometimes have to refresh the page in order for the applet to load.

Because Java works on one page, I think I have the right plugins, but I can't figure out why it doesn't work on the other pages.

BTW, these pages work in Windows, so I know that the java applets DO work.
 
Old 10-25-2010, 04:57 AM   #2
hairysocks
Member
 
Registered: May 2002
Location: Thorverton, Near Exeter, Devon, England
Distribution: Ubuntu 10.04 (used to be Red Hat 7.1, then Red Hat 9, then FC 2, FC 5, FC 6, FC 9 and Ubuntu 8.04)
Posts: 105

Rep: Reputation: 16
Do you get any messages in the Java Console - such as OutOfMemory?
 
Old 10-26-2010, 03:39 PM   #3
schachwizard
Member
 
Registered: Sep 2010
Location: Philly
Distribution: OpenSuse
Posts: 67

Original Poster
Rep: Reputation: 3
No, I get no messages, as far as I can see.
 
Old 10-26-2010, 03:54 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Are you sure you're linking the right library?

Have a look at this:
http://www.linuxquestions.org/questi...-3-6-x-825409/
 
Old 10-27-2010, 12:53 AM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
schachwizard,
Hello from Philly!!
For the Sun java package and plugin for Firefox, make sure you have installed sun-java6-jre and sun-java6-plugin from the Ubuntu repos.
If you type aboutlugins in Firefox (that is, about, then a colon, and then plugins, with no spaces in between) it should list what java plugin you are using.

Last edited by tommcd; 10-27-2010 at 12:58 AM.
 
Old 10-27-2010, 03:50 PM   #6
schachwizard
Member
 
Registered: Sep 2010
Location: Philly
Distribution: OpenSuse
Posts: 67

Original Poster
Rep: Reputation: 3
I did not have either of those packages installed. (I thought ubuntu-restricted-extras would have taken care of that)

However, the second link still does not work.
 
Old 10-28-2010, 01:31 AM   #7
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Those links work for me. Did you install the sun-java6-jre and sun-java6-plugin packages? Does aboutlugins in Firefox list java as one of your plugins? You should see something like this:
Code:
Java(TM) Plug-in 1.6.0_22

    File: libnpjp2.so
    Version: 
    The next generation Java plug-in for Mozilla browsers.
This is followed by a whole lot of java stuff. Do you have this in aboutlugins?

I think the ubuntu-restricted-extras may install the icedtea6 open source java package. If you have the icedtea6-plugin installed, or any other icedtea6 package installed, remove them and then restart Firefox. The icedtea6-plugin may conflict with the sun-java6-plugin package.

Last edited by tommcd; 10-28-2010 at 01:37 AM.
 
Old 10-28-2010, 01:47 AM   #8
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Actually, it installs openjdk-6-* (as in all the openjdk-6 packages). Those replace the 'sun-java' packages (the names changed after Sun was purchased by Oracle). As such, it should have worked. But if not, try this (in case it did install icedtea):

Code:
sudo apt-get install openjdk* && sudo apt-get purge icedtea*
 
Old 10-28-2010, 02:09 AM   #9
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by Kenny_Strawn View Post
Actually, it installs openjdk-6-* (as in all the openjdk-6 packages). Those replace the 'sun-java' packages (the names changed after Sun was purchased by Oracle). As such, it should have worked. But if not, try this (in case it did install icedtea):
Thanks for mentioning that. I knew the ubuntu-restricted-extras installed something else besides the sun-java packages, but I could not remember what.
The sun-java packages are still in the Ubuntu repos. I have them installed; and I do not have any openjdk-6 packages installed.
The sun-java packages are still listed at ubuntuguide.org also:
http://ubuntuguide.org/wiki/Ubuntu:M...irefox_plug-in

Last edited by tommcd; 10-28-2010 at 02:10 AM.
 
Old 10-28-2010, 07:37 PM   #10
schachwizard
Member
 
Registered: Sep 2010
Location: Philly
Distribution: OpenSuse
Posts: 67

Original Poster
Rep: Reputation: 3
Tommcd,

I removed the icedtea6 packages, and suddenly everything worked!

Thank you very much!
 
Old 10-29-2010, 12:13 AM   #11
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by schachwizard View Post
I removed the icedtea6 packages, and suddenly everything worked!
So it was the icedtea6-plugin that was causing the problem then.
Glad I could be of help.
 
Old 01-01-2011, 08:57 AM   #12
philipm
Member
 
Registered: Jan 2006
Posts: 39

Rep: Reputation: 15
I seem to have a similar problem with clashed versions of Java, but I'm not exactly sure what to do:

If I search for IcedTea in Synaptic, I actually get a load of openjdk packages displayed: The description says they are from the IcedTea build! So, I'm not sure what to remove and what to install, since openjdk and icedtea seem to be the same thing.

Also, these openjdk packages have "!" marks next to them in the S column - I'm not sure what this means, since there isn't any help when I hover over the icon.

So, can somebody tell me which packages I need to install - and which I should definitely remove - in order to be able to use Java applets from Firefox? The Sun Java packages seem to no longer be available. I'm using Ubuntu 10.04
 
Old 01-01-2011, 05:21 PM   #13
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by philipm View Post
I seem to have a similar problem with clashed versions of Java, but I'm not exactly sure what to do:

So, can somebody tell me which packages I need to install - and which I should definitely remove - in order to be able to use Java applets from Firefox? The Sun Java packages seem to no longer be available. I'm using Ubuntu 10.04
Just remove any icedtea* and openjdk* packages and install sun-java6-jre and sun-java6-plugin. Then restart Firefox and you should be good.
I have no idedtea* or openjdk* packages on my system and java works fine with the sun-java packages.
You may need to enable the Partner repository under software sources in synaptic in order to get the sun-java packages.
 
  


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
[SOLVED] Java threads, why does this work/not work? anon187 Programming 2 09-10-2010 02:52 PM
Java does not work, I DLed Java and it still does not work M$ISBS Linux - Newbie 0 04-15-2007 08:20 PM
java: java.util.Hashmap doesn't work for a custom object kpachopoulos Programming 2 04-15-2007 03:25 PM
Java difficulties (setting up a java work box) toaster.waffle Programming 3 03-10-2006 07:54 AM
Updated Java... now java apps dont work zidane2010 Linux - Software 6 05-04-2004 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:20 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