diff --git a/java/src/processing/mode/java/JavaBuild.java b/java/src/processing/mode/java/JavaBuild.java index 3cf239c0f..6e13093cc 100755 --- a/java/src/processing/mode/java/JavaBuild.java +++ b/java/src/processing/mode/java/JavaBuild.java @@ -1093,11 +1093,12 @@ public class JavaBuild { // Do the newlines explicitly so that Windows CRLF // isn't used when exporting for Unix. pw.print("#!/bin/sh\n\n"); - //ps.print("APPDIR=`dirname $0`\n"); - pw.print("APPDIR=$(readlink -f \"$0\")\n"); //Allow Symlinks - pw.print("APPDIR=$(dirname \"$APPDIR\")\n"); // more posix compliant + pw.print("APPDIR=$(readlink -f \"$0\")\n"); // allow symlinks + pw.print("APPDIR=$(dirname \"$APPDIR\")\n"); // more POSIX compliant + // another fix for bug #234, LD_LIBRARY_PATH ignored on some platforms //ps.print("LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$APPDIR\n"); + if (embedJava) { // https://github.com/processing/processing/issues/2349 pw.print("$APPDIR/java/bin/"); @@ -1105,6 +1106,8 @@ public class JavaBuild { String runOptionsStr = runOptions.join(" "); pw.print("java " + runOptionsStr + " -Djava.library.path=\"$APPDIR:$APPDIR/lib\"" + + " -Djava.ext.dirs=\"$APPDIR/java/lib/ext\"" + + " -Djna.nosys=true" + " -cp \"" + exportClassPath + "\"" + " " + sketch.getName() + " \"$@\"\n"); diff --git a/todo.txt b/todo.txt index 005b71af8..456e2dfa9 100755 --- a/todo.txt +++ b/todo.txt @@ -6,6 +6,7 @@ X https://github.com/processing/processing/issues/4623 _ might be ext.dirs trouble with spaces in path names? _ or the backwards slashes? X fixes for Python Mode crashing on startup +X disable ext.dirs on Linux export and set jna.nosys as well _ JavaInputHandler not registering _ library compilations handled oddly