pluginappletviewer location/installation
Thomas Fitzsimmons
fitzsim at redhat.com
Fri Sep 14 10:26:57 PDT 2007
Matthew Flaschen wrote:
> I use the IcedTea version of gcjwebplugin by symlinking it to my
> ~/.plugins. By default, this will give an error like:
>
> gcjwebplugin error: Failed to run
> /home/user/IcedTea/hg/../../bin/pluginappletviewer. For more detail
> rerun "firefox -g" in a terminal window.
You're linking to the wrong copy of gcjwebplugin.so. Here's how I install it:
ln -s
/notnfs/fitzsim/sources/icedtea/openjdk/control/build/linux-i586/j2sdk-image/jre/lib/i386/gcjwebplugin.so
~/.mozilla/plugins/
>
> This is because line 1530 of gcjwebplugin.cc says:
>
> appletviewer_executable = g_strdup_printf
> ("%s/../../bin/pluginappletviewer",
>
> As a workaround, I created a bin symlink to
> IcedTea/hg/openjdk/control/build/linux-i586/bin two directories above
> the hg directory (where gcjwebplugin.so is).
>
> So now, hg/gcjwebplugin.so can find hg/../../bin, which goes to
> hg/openjdk/control/build/linux-i586/bin
>
> But this doesn't make much sense. One option is to hard-code the
> correct path (openjdk/control/build/linux-i586/bin), but that's not a
> good long-term option either. Can someone think of a solution that
> isn't a hack? Perhaps it's time for an install target.
I didn't want to install pluginappletviewer in /usr/bin because it is an
implementation-private binary that normal users shouldn't run. So it won't be
in PATH. The only other way to find it is in a known location, relative to
gcjwebplugin.so, within JAVA_HOME.
Tom
More information about the distro-pkg-dev
mailing list