java fights with konqueror

I have installed the latest java from sun on a fresh system through yast.

Afterwards I have done the recommended …

cd /usr/lib/browser-plugins/
ln -s /etc/alternatives/jre_1.6.0/plugin/i386/ns7/

firefox works perfect
konqueror is being a pain in the youknowwhere as it says java is not installed.

My settings in konqueror:

It looks that one way or another I have to tell konqueror where java is installed, however I don’t see what’s wrong. Now …

  • konqueror performs way better with this particular applet, firefox is no real option
  • i’m using 32-bit opensuse 11.0 with kde 3.5

hope someone can point me into the right direction

Just guessing here,

In OS11.0 x86_64/KDE3.5 the path I have in konqueror setup is /usr/lib/jvm/java-1.6.0-sun-1.6.0.u11/jre/bin/java.

However for firefox I had to install version u12 for compatibility with some banking sites, as reported by about:plugins in firefox, the java plugin it’s using is /usr/lib64/browser-plugins/, that links to /usr/java/jre1.6.0_12/lib/amd64/

So I understand that firefox and konqueror may use different java packages, and maybe your konqueror setting could be wrong or changed to another jre.

i was able to narrow down the problem:

  • after installing java on a clear system, konqueror handles applets perfectly
  • after the first system reboot upon installing them, same old error in konqueror (no java installed, can’t display applet, lalala )
    … which is really odd :confused:

thanks for your hint brunomcl: my /usr/lib/jvm looks like this (ls -al)

lrwxrwxrwx   1 root root    26 2009-04-16 03:05 java -> /etc/alternatives/java_sdk
lrwxrwxrwx   1 root root    32 2009-04-16 03:05 java-1.6.0 -> /etc/alternatives/java_sdk_1.6.0
lrwxrwxrwx   1 root root    20 2009-04-16 03:05 java-1.6.0-sun -> java-1.6.0-sun-1.6.0
drwxr-xr-x   6 root root  4096 2009-04-16 03:05 java-1.6.0-sun-1.6.0
lrwxrwxrwx   1 root root    30 2009-04-16 03:05 java-sun -> /etc/alternatives/java_sdk_sun
lrwxrwxrwx   1 root root    21 2009-04-16 03:05 jre -> /etc/alternatives/jre
lrwxrwxrwx   1 root root    27 2009-04-16 03:05 jre-1.6.0 -> /etc/alternatives/jre_1.6.0
lrwxrwxrwx   1 root root    24 2009-04-16 03:05 jre-1.6.0-sun -> java-1.6.0-sun-1.6.0/jre
lrwxrwxrwx   1 root root    25 2009-04-16 03:05 jre-sun -> /etc/alternatives/jre_sun

I’ve tried to change the ‘path to java executable’ in konqueror to most variations i can come up with, to no avail.

As I install java as root, this can’t be a permission problem imo. However it works until the first reboot.

My best bet is now to convert me to a religion and light a few candles :stuck_out_tongue:

Konqueror is looking for a executable called ‘java’, and is not finding it. Curiously, the path shown in my konqueror setup does not exist. You may want to check that, and point konqueror to where the ‘java’ executable really is.

You may be able to find that using the software manager. Click on the installed java runtime environment (jre) and check the list of files. The executables are usually shown in bold. In my system it’s shown at:


But guess what: there’s another java executable in:


It seems you can install a number of javas. ATM I’m using the first, at least in FF.

Another way to find your java locations is to go to Openoffice > Tools Menu > Options > Java, that will show you the path to the executables. In my system it shows both paths above (stripped of the bin/java subfolders), like this:

Local: /usr/java/jre1.6.0_12

Local: /usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre

Hope it helps.

P.S.: As I rarely use konqueror for browsing I haven’t tested any of these ‘javas’ functionality in it.