Java plugin for Firefox

Hi,

I keep getting this error message, I did a search and didn’t find a solution to my Java browser problems .

gcjwebplugin error: Failed to run /etc/alternatives/…/…/bin/java. For more detail rerun “firefox -g” in a terminal window.

Could somebody please direct me to help?

System: openSUSE 11.2 (i586)
KDE: 4.3.5 (KDE 4.3.5) “release 0”
Firefox version 3.5.9

And what did the “rerun “firefox -g” in a terminal window” do give as “more detail”?

Thanks hcw,

Running firefox -g in terminal just opens a new firefox browser window!No details.

I only asked because even to me it was clear this information was missing.

I have in fact no idea what is wrong here, but maybe posting what I have as java helps:

henk@boven:~> zypper se -i '*java*'
Gegevens van installatiebron laden...
Lezen van geïnstalleerde pakketten...

S | Naam                     | Samenvatting                                              | Type
--+--------------------------+-----------------------------------------------------------+-------
i | java-1_6_0-openjdk       | Java runtime environment based on OpenJDK 6 and IcedTea 6 | pakket
i | java-1_6_0-openjdk       | java-1_6_0-openjdk security update                        | patch
i | java-1_6_0-openjdk-devel | Java SDK based on OpenJDK 6 and IcedTea 6                 | pakket
i | java-1_6_0-sun           | Java(TM) 6 Runtime Environment                            | pakket
i | java-1_6_0-sun           | SUN Java security update                                  | patch
i | java-1_6_0-sun-plugin    | Browser plugin files for java-1_6_0-sun                   | pakket
i | timezone-java            | Timezone Descriptions                                     | pakket
henk@boven:~>

As you see I have two javas, openjdk and sun. That is for a particular reason. You should have the sun ones, not the openjdk.

hcvv

I deleted everything java from YaST. There was quite a list obviously causing some conflicts and reinstall the ones you said were necessary.

dave@linux-2z2n:~> zypper se -i ‘java
Loading repository data…
Reading installed packages…

S | Name | Summary | Type
–±----------------------------±----------------------------------------±-------
i | gcc-java | The system GNU Java Compiler | package
i | gcc44-java | The GNU Java Compiler | package
i | java-1_5_0-gcj-compat | JPackage Runtime Scripts for GCJ | package
i | java-1_5_0-gcj-compat-devel | JPackage development scripts for GCJ | package
i | java-1_6_0-sun | Java™ 6 Runtime Environment | package
i | java-1_6_0-sun | SUN Java security update | patch
i | java-1_6_0-sun-plugin | Browser plugin files for java-1_6_0-sun | package

So far still no luck. Plugin does not work. Can you suggest anything i can change or add please?

Thanks

Hm, strange.

BTW when I do

henk@boven:~> firefox -g
*** nss-shared-helper: Shared database disabled (set NSS_USE_SHARED_DB to enable).
henk@boven:~>

I do get something. You realy get nothing?

And where is your “gcjwebplugin error: …” message shown, in a pop-up window?

firefox -g still just opens a new Firefox window.
The error pop up is no longer there since I deleted and reinstalled.
I am still unable to view cameras like this
伊勢湾海上交通センターライブカメラ2](http://www6.kaiho.mlit.go.jp/isewan/others/live_cam2.htm)

or use a java based photo uploader such as that on Facebook.

This is what i have in there now.

S | Name | Summary | Type
–±------------------------------±------------------------------------------------±-------
i | HoloRacer-javadoc | Javadoc for HoloRacer | package
i | ImageJA-javadoc | Javadoc for ImageJA | package
i | gcc-java | The system GNU Java Compiler | package
i | gcc44-java | The GNU Java Compiler | package
i | jakarta-commons-codec-javadoc | Implementations of common encoders and decoders | package
i | java-1_5_0-gcj-compat | JPackage Runtime Scripts for GCJ | package
i | java-1_5_0-gcj-compat-devel | JPackage development scripts for GCJ | package
i | java-1_6_0-sun | Java™ 6 Runtime Environment | package
i | java-1_6_0-sun | SUN Java security update | patch
i | java-1_6_0-sun-plugin | Browser plugin files for java-1_6_0-sun | package
i | timezone-java | Timezone Descriptions | package

What is the output of

update-alternatives --list java

Edit
Actually try

update-alternatives --all

dave@linux-2z2n:~> update-alternatives --list java
Absolute path to ‘update-alternatives’ is ‘/usr/sbin/update-alternatives’, so running it may require superuser privileges (eg. root).

output is the same for both

su or sudo first so

su -c "update-alternatives --all"

This right?

dave@linux-2z2n:~> su
Password:
linux-2z2n:/home/dave # /usr/sbin/update-alternatives
update-alternatives: need --display, --config, --set, --install, --remove, --all, --remove-all or --auto

Usage: update-alternatives <option> …] <command>

Commands:
–install <link> <name> <path> <priority>
–slave <link> <name> <path>] …
add a group of alternatives to the system.
–remove <name> <path> remove <path> from the <name> group alternative.
–remove-all <name> remove <name> group from the alternatives system.
–auto <name> switch the master link <name> to automatic mode.
–display <name> display information about the <name> group.
–list <name> display all targets of the <name> group.
–config <name> show alternatives for the <name> group and ask the
user to select which one to use.
–set <name> <path> set <path> as alternative for <name>.
–all call --config on all alternatives.

<link> is the symlink pointing to /etc/alternatives/<name>.
(e.g. /usr/bin/pager)
<name> is the master name for this link group.
(e.g. pager)
<path> is the location of one of the alternative target files.
(e.g. /usr/bin/less)
<priority> is an integer; options with higher numbers have higher priority in
automatic mode.

Options:
–altdir <directory> change the alternatives directory.
–admindir <directory> change the administrative directory.
–verbose verbose operation, more output.
–quiet quiet operation, minimal output.
–help show this help message.
–version show the version.

This looks more like it. sorry

linux-2z2n:/home/dave # su -c “update-alternatives --all”

There is only 1 program which provides j2ee_connector_api
(/usr/share/java/geronimo-j2ee-1.4-apis.jar). Nothing to configure.

There is only 1 program which provides jre_sun
(/usr/lib/jvm/jre-1.6.0-sun). Nothing to configure.

There is only 1 program which provides stax_api
(/usr/share/java/geronimo-stax-1.0-api.jar). Nothing to configure.

There is only 1 program which provides el_api
(/usr/share/java/geronimo-el-1.0-api.jar). Nothing to configure.

There is only 1 program which provides jsp
(/usr/share/java/geronimo-jsp-2.0-api.jar). Nothing to configure.

There is only 1 program which provides php
(/usr/bin/php5). Nothing to configure.

There is only 1 program which provides jaxrpc_api
(/usr/share/java/geronimo-j2ee-1.4-apis.jar). Nothing to configure.

There is only 1 program which provides j2ee_management_api
(/usr/share/java/geronimo-j2ee-1.4-apis.jar). Nothing to configure.

There is only 1 program which provides qname_1_1_api
(/usr/share/java/geronimo-j2ee-1.4-apis.jar). Nothing to configure.

There are 2 alternatives which provide `servlet_2_4_api’.

Selection Alternative

*+ 1 /usr/share/java/geronimo-servlet-2.4-api.jar
2 /usr/share/java/geronimo-j2ee-1.4-apis.jar

Press enter to keep the default[li], or type selection number: linux-2z2n:/hom
[/li]Argument “linux-2z2n:/hom” isn’t numeric in numeric ge (>=) at /usr/sbin/update-alternatives line 680, <STDIN> line 1.

You missed --all or --list java.

I reckon --all will be the best as you’ll be able to choose and confirm that either there is one plugin being recognised otherwise list will show what is being detected. But with all should get it to work I can confirm the site you linked works fine with sun java, so it’s your environment that needs tweaking.

OK yep that is better step through(press enter to keep as is for the moment) we need to see specifically the java(plugin,runtime,version) bits I can’t really do a like for like comparison as I don’t use gnome.

@Linuxinlennox, please one point: can you put computer input/output between CODE tags (select the text after pasting and click the # button in the bar above the input field), like feathermonkey and I do. This makes it better readable because the computer lay-out is preserved.

I am not actually working on a Gnome desktop now but KDE
Sorry i am making a mess here

There are 2 alternatives which provide `servlet_2_4_api’.

Selection Alternative

*+ 1 /usr/share/java/geronimo-servlet-2.4-api.jar
2 /usr/share/java/geronimo-j2ee-1.4-apis.jar

Press enter to keep the default[li], or type selection number: linux-2z2n:/hom
[/li]Argument “linux-2z2n:/hom” isn’t numeric in numeric ge (>=) at /usr/sbin/update-alternatives line 680, line 1.

There are 2 alternatives which provide `servlet_2_4_api’.

Selection Alternative

*+ 1 /usr/share/java/geronimo-servlet-2.4-api.jar
2 /usr/share/java/geronimo-j2ee-1.4-apis.jar

Press enter to keep the default[li], or type selection number:
[/li]
There is only 1 program which provides corba_apis
(/usr/share/java/geronimo-j2ee-1.4-apis.jar). Nothing to configure.

There is only 1 program which provides jaf
(/usr/share/java/geronimo-jaf-1.1-api.jar). Nothing to configure.

There are 2 alternatives which provide `servlet_api’.

Selection Alternative

*+ 1 /usr/share/java/geronimo-servlet-2.4-api.jar
2 /usr/share/java/geronimo-j2ee-1.4-apis.jar

Press enter to keep the default[*], or type selection number:

Ok, sorry. I will work on that.

What I’m not seeing is something like

here is only 1 program which provides java
(/usr/lib/jvm/jre-blah-blah). Nothing to configure.

So it may be you’ve done something strange to install java,

zypper in java-1.6.0-sun-plugin

Will install it but update alternatives will need to be run to swap java if 2 installed otherwise it will only have one choice.

Either that or the output is truncated due to not entering all the way through.

Before i try to install it…there is this…

There is only 1 program which provides javaplugin
(/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/libnpjp2.so). Nothing to configure.