Bug#900356: jabref: JabRef does no longer start with Java8

tony mancill tmancill at debian.org
Sat Jun 2 17:59:55 BST 2018


On Tue, May 29, 2018 at 04:40:50PM +0200, gregor herrmann wrote:
> On Tue, 29 May 2018 14:41:14 +0200, Andreas Gocht wrote:
> 
> > I recently tried to start JabRef using my default Java8 version. I got the following error:
> > 
> > Unrecognized option: --add-modules=java.se.ee
> > Error: Could not create the Java Virtual Machine.
> > Error: A fatal exception has occurred. Program will exit.
> > 
> > I realised, that --add-modules=java.se.ee might be needed for Java9, so I installed openjdk-9-jre which solved the problem.
> 
> Thanks for your bug report!
> 
> Indeed, the interaction between JabRef and various openjdk-* versions
> is a bit messy.
> 
> Looking at the recent evolution of debian/control, I note that
> there's no default-jre or openjdk-* in Depends any more.
> 
> The recent changes were:
> "default-jre (>= 2:1.8) | java8-runtime" → "openjdk-8-jre" → ""
> 
> I guess, adding something like
> "default-jre (>= 2:1.9) | java9-runtime"
> should help (java9-runtime is provided by default-jre (2:1.10-65),
> default-jre (2:1.10-66), openjdk-10-jre (10.0.1+10-4), openjdk-11-jre
> (11~13-2), openjdk-11-jre (11~15-1), openjdk-9-jre (9.0.4+12-4)).
> 
> Tony, what do you think?

I'm not sure about requiring java9-runtime given that our users
obviously run JREs other than the default in the current distribution.
What I think we should do is try to detect if the jabref-wrapper is
being invoked with java8 and clear the options required for the java9
workaround.

If that sounds acceptable, I'll work on that.  (I should have done
something like that in the first place.)
 
> PS and JFTR: `JABREF_JAVA_OPTS="" jabref' might have worked with
> openjdk-8 as well.

Yes, the intention in allowing JABREF_JAVA_OPTS to be overridden on the
command-line was to support JREs that don't play nicely with the
workarounds required for the default JRE shipped by default in Debian.

Cheers,
tony 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20180602/ca0a7b99/attachment.sig>


More information about the pkg-java-maintainers mailing list