mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
add the Contents/Java folder to java.library.path on OS X
This commit is contained in:
@@ -10025,6 +10025,24 @@ public class PApplet implements PConstants {
|
||||
// Remove 60fps limit on the JavaFX "pulse" timer
|
||||
System.setProperty("javafx.animation.fullspeed", "true");
|
||||
|
||||
// In an exported application, add the Contents/Java folder to the
|
||||
// java.library.path, so that native libraries work properly.
|
||||
// Without this, the library path is only set to Contents/MacOS
|
||||
// where the launcher binary lives.
|
||||
if (platform == MACOSX) {
|
||||
URL coreJarURL =
|
||||
PApplet.class.getProtectionDomain().getCodeSource().getLocation();
|
||||
// The jarPath from above will/may be URL encoded (%20 for spaces)
|
||||
String coreJarPath = urlDecode(coreJarURL.getPath());
|
||||
if (coreJarPath.endsWith("/Contents/Java/core.jar")) {
|
||||
// remove the /core.jar part from the end
|
||||
String javaPath = coreJarPath.substring(0, coreJarPath.length() - 9);
|
||||
String libraryPath = System.getProperty("java.library.path");
|
||||
libraryPath += File.pathSeparator + javaPath;
|
||||
System.setProperty("java.library.path", libraryPath);
|
||||
}
|
||||
}
|
||||
|
||||
// Catch any HeadlessException to provide more useful feedback
|
||||
try {
|
||||
// Call validate() while resize events are in progress
|
||||
|
||||
@@ -2,7 +2,13 @@
|
||||
X Incomplete text rendering of strings with consecutive line breaks
|
||||
X https://github.com/processing/processing/issues/3736
|
||||
X https://github.com/processing/processing/pull/3737
|
||||
X add the Contents/Java folder to java.library.path on OS X
|
||||
X allows exported applications to use the Sound library
|
||||
|
||||
andres
|
||||
X P2D: error calling surface.setTitle()
|
||||
o https://github.com/processing/processing/issues/3721
|
||||
X https://github.com/processing/processing/commit/a384cbf0890a49dbf6e0fdd80e048de80e5d78d2
|
||||
|
||||
jakub
|
||||
X FX - fix transformation stack NPE
|
||||
@@ -39,6 +45,8 @@ X FX - normalize enter key
|
||||
X https://github.com/processing/processing/pull/3730
|
||||
X Render text starting with space properly
|
||||
X https://github.com/processing/processing/pull/3746
|
||||
X FX - smooth for the main surface
|
||||
X https://github.com/processing/processing/pull/3749
|
||||
|
||||
|
||||
known issues
|
||||
|
||||
@@ -14,7 +14,10 @@ _ Code editor wrongly detects errors for libraries in code folder
|
||||
_ https://github.com/processing/processing/issues/3732
|
||||
_ remove old versions of processing-java when installing on OS X
|
||||
_ "color type detected! this shouldn't be happening! please report"
|
||||
_ happens when user does 'new color' instead of 'color'
|
||||
_ https://github.com/processing/processing/issues/3739
|
||||
_ confusion when // tweak is used
|
||||
_ https://github.com/processing/processing/issues/3742
|
||||
|
||||
gsoc
|
||||
X CM: Category dropdown alignment
|
||||
|
||||
Reference in New Issue
Block a user