Java applets in Firefox

Asked by Kalpa Pathum Welivitigoda

I use Ubuntu 7.10 and firefox 2.0.0.6. I can't run java applets in firefox.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu firefox Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andres Rodriguez (andreserl) said :
#1

Hi, have you installed the java plugin or java jre?? if you haven't done so please open a terminal and do this:

sudo apt-get install sun-java6-jre sun-java6-plugin

give password when given.

Let me know if your firefox runs java applets after doing this.

Revision history for this message
Kalpa Pathum Welivitigoda (callkalpa-gmail) said :
#2

I have installed the java jre. When I type about:plugins in the address bar of Firefix, it displays that they are there, but still java applets are not running.

Revision history for this message
Andres Rodriguez (andreserl) said :
#3

please now try this:

sudo update-java-alternatives -s java-6-sun

and restart firefox and let's see what happens

Revision history for this message
Kalpa Pathum Welivitigoda (callkalpa-gmail) said :
#4

It results in "update-java-alternatives: directory does not exist: /usr/lib/jvm/java-6-sun"

Revision history for this message
Andres Rodriguez (andreserl) said :
#5

Ok so let's do this again:

First remove all java packages:
sudo apt-get remove sun-java6-jre sun-java6-jdk sun-java6-plugin

then do this:

sudo apt-get autoclean

Then let's install java again (and just in case jdk):

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-jdk

Then

sudo update-java-alternatives -s java-6-sun

then edit this file:

sudo vim /etc/jvm

and add the following to the top of the file

/usr/lib/jvm/java-6-sun

And try firefox again. If this doesn't work, please uninstall firefox and java, then do the autoclean command and reinstall firefox and follow this process again and let me know if it works.

Revision history for this message
colorz (varaprasadm) said :
#6

I am facing the same issue

Now my problem is when I run the following command

sudo apt-get remove sun-java6-jre sun-java6-jdk sun-java6-plugin

it always asks for the CD,
Media change: please insert the disc labeled
 'Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)'
in the drive '/cdrom/' and press enter

currently I do not have the CD, is there any way that we can directly download from the website.

Your help is appreciated.

Thanks in advance.
Colorz

Revision history for this message
Nuke (fleminjo) said :
#7

I had a similar problem with running java apps. I had to remove "OpenJDK" and "Sun-Java5". Go to Synaptic package manager and remove these two packages. Then install Sun-java6 and updated it as per posts 1 and 3

Revision history for this message
matakura (matakura) said :
#8

You will need to edit the file /etc/apt/sources.list and coment the line the first line of he file that makes reference to install programs or applications form the cd

Can you help with this problem?

Provide an answer of your own, or ask Kalpa Pathum Welivitigoda for more information if necessary.

To post a message you must log in.