Package: gcjwebplugin Version: 0.3.2-1 Severity: normal Tags: patch When configuring gcjwebplugin without the native viewer, the java VM used is hardcoded into the gcjappletviewer program. This make it harder to select java VM at runtime. I want to be able to select Java VM at runtime to test if bugs are fixed in the various VMs.
This patch changes the perl-version of gcjappletviewer to use the JAVA environment variable if it exist to select Java VM. When I configure like this ./configure --disable-native-viewer I am able to select jvm by calling the program like this (including random test URL): JAVA=cacao gcjappletviewer http://elib.cs.berkeley.edu/gis/examples/world.html This patch is also sent upstream. Please apply it to the debian package, and add --disable-native-viewer to DEB_CONFIGURE_USER_FLAGS in debian/rules to make this runtime jvm selection work in the default package. --- gcjwebplugin-0.3.2.orig/src/gcjappletviewer.in +++ gcjwebplugin-0.3.2/src/gcjappletviewer.in @@ -2,7 +2,7 @@ use strict; -my $JAVA = '@JAVA@'; +my $JAVA = $ENV{'JAVA'} || '@JAVA@'; my $MAINCLASS = 'gnu.gcjwebplugin.AppletViewer'; my $PREFIX = '@prefix@'; my $GCJAPPLETVIEWER_CLASSPATH = "$PREFIX/share/java/gcjappletviewer.jar"; -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.8-2-386 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages gcjwebplugin depends on: ii gij-4.0 4.0.3-1 The GNU Java bytecode interpreter ii libc6 2.3.6-4 GNU C Library: Shared libraries an ii libgcc1 1:4.0.3-1 GCC support library ii libgcj6 4.0.3-1 Java runtime library for use with ii libgcj6-awt 4.0.3-1 AWT peer runtime libraries for use ii libglib2.0-0 2.10.1-2 The GLib library of C routines ii libstdc++6 4.0.3-1 The GNU Standard C++ Library v3 Versions of packages gcjwebplugin recommends: ii links [www-browser] 0.99+1.00pre12-1 Character mode WWW browser ii lynx [www-browser] 2.8.5-2sarge1 Text-mode WWW Browser ii mozilla-browser [www-br 2:1.7.12-1.1 The Mozilla Internet application s ii w3m [www-browser] 0.5.1-4 WWW browsable pager with excellent -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]