SWI-Prolog / packages-jpl

JPL: The Prolog <-> Java interface
BSD 2-Clause "Simplified" License
54 stars 33 forks source link

Also check for Java libs in new Java 9 directory structure #6

Closed dmpotter44 closed 6 years ago

dmpotter44 commented 6 years ago

Prior to Java 9, the macOS version of Java placed the libjvm.dylib file at $JAVA_HOME/jre/lib/server. As of Java 9, it now lives at $JAVA_HOME/lib/server. This breaks the JPL build under Java 9, as it's looking for the libjvm.dylib file in the wrong place. (For details on why they moved it, see JEP 220.)

This may also move it on other OSes, as $JAVA_HOME/lib/server should now be the "standard" location for the libjvm library on macOS, Solaris, and Linux. However I have not checked that this is the case.

JanWielemaker commented 6 years ago

Thanks!