Package: jabref
Version: 2.0.1+2.1b2-1
Severity: minor
Hello,
Thanks for packaging JabRef!
Just noticed some minor issues in the wrapper script /usr/bin/jabref.
First, JabRef is not just a GUI, it also accepts some commend line
options. Try:
java -jar /usr/share/java/jabref.jar --help
However, the wrapper script ignores all command line options. I would
suggest a simple change:
java -jar /usr/share/java/jabref.jar "$@"
instead of:
java -jar /usr/share/java/jabref.jar
Second, JabRef cannot use any "java" that happens to be available in
the system; it specifically requires the Sun Java (or some other
non-free thingy?). If the alternatives are chosen so that "java"
points to, say, /usr/lib/jvm/java-gcj/jre/bin/java, one will get an
error message such as this (I copy & paste it here in case someone
else is looking for the error message in the BTS):
% jabref
createDefaultRoot not implemented
fireChangedUpdate not implemented
Exception in thread "main" java.lang.NullPointerException
at net.sf.jabref.MnemonicAwareAction.putValue(Unknown Source)
at javax.swing.AbstractAction.<init>(libgcj.so.7)
at javax.swing.AbstractAction.<init>(libgcj.so.7)
at javax.swing.AbstractAction.<init>(libgcj.so.7)
at net.sf.jabref.MnemonicAwareAction.<init>(Unknown Source)
at net.sf.jabref.imports.OpenDatabaseAction.<init>(Unknown Source)
at net.sf.jabref.JabRefFrame.<init>(Unknown Source)
at net.sf.jabref.JabRef.openWindow(Unknown Source)
at net.sf.jabref.JabRef.<init>(Unknown Source)
at net.sf.jabref.JabRef.main(Unknown Source)
Naturally, "update-alternatives --config java" and explicitly choosing
/usr/lib/jvm/java-1.5.0-sun/jre/bin/java helps. However, as far as I
can see, this is not the default setting even if one has Sun Java
installed from the Debian packages.
I do not know what would be the right way to fix this problem. Some
ideas:
- Document the issue in README.Debian.
- An ugly trick such as using
"/usr/lib/jvm/java-1.5.0-sun/jre/bin/java" if available;
otherwise falling back to "java"?
Best regards,
Jukka Suomela
-- 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.17-1-686
Locale: LANG=fi_FI, LC_CTYPE=fi_FI (charmap=ISO-8859-1)
Versions of packages jabref depends on:
ii sun-java5-jre 1.5.0-07-1 Sun Java(TM) Runtime Environment (
jabref recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]