coli-saar / utool

Utool is the Swiss Army Knife of Underspecification. It is a GUI and library written in Java for performing computations with dominance graphs and other formalisms, which are used to represent semantic ambiguities in natural language processing.
http://www.coli.uni-saarland.de/projects/chorus/utool/
3 stars 0 forks source link

Fix Mac dependency #3

Closed alexanderkoller closed 4 years ago

alexanderkoller commented 4 years ago

On modern versions of Java, utool display crashes with the following error message:

hilbert:utool koller$ java -jar target/utool-3.2.2-SNAPSHOT-jar-with-dependencies.jar  display
Exception in thread "main" java.lang.NoClassDefFoundError: com/apple/eawt/ApplicationListener
    at de.saar.chorus.domgraph.utool.Utool.main(Utool.java:66)
Caused by: java.lang.ClassNotFoundException: com.apple.eawt.ApplicationListener
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ... 1 more

This is because JEP 272 removed support for the Apple-specific desktop classes in Java 9. This library should help fix this.