mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 10:30:44 +01:00
Upon including processing.serial.*, the java.library.path of the sketch - when compiled normally - gets expanded to include the location of the specific library subfolder. For exported sketches on MacOS, java.library.path points just to Contents/MacOS inside the application, which causes loadLibrary inside custom libraries to fail. Since those library files (*.jnilib) get copied into Contents/Java, change the java.library.path to include this location as well. Somewhat confident that this shouldn't break things, but this is touching core infrastructure.