GeezerVison is showing github.com — disable ext.dirs on Linux export and set jna.nosys as well · jayvdb/processing@182c09a
File tree
Expand file treeCollapse file tree
Open diff view settings
java/src/processing/mode/java
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: java/src/processing/mode/java/JavaBuild.java +6-3Lines changed: 6 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1093,18 +1093,21 @@ protected boolean exportApplication(File destFolder, |
1093 | 1093 | // Do the newlines explicitly so that Windows CRLF |
1094 | 1094 | // isn't used when exporting for Unix. |
1095 | 1095 | pw.print("#!/bin/sh\n\n"); |
1096 | | - //ps.print("APPDIR=`dirname $0`\n"); |
1097 | | - pw.print("APPDIR=$(readlink -f \"$0\")\n"); //Allow Symlinks |
1098 | | - pw.print("APPDIR=$(dirname \"$APPDIR\")\n"); // more posix compliant |
| 1096 | + pw.print("APPDIR=$(readlink -f \"$0\")\n"); // allow symlinks |
| 1097 | + pw.print("APPDIR=$(dirname \"$APPDIR\")\n"); // more POSIX compliant |
| 1098 | + |
1099 | 1099 | // another fix for bug #234, LD_LIBRARY_PATH ignored on some platforms |
1100 | 1100 | //ps.print("LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$APPDIR\n"); |
| 1101 | + |
1101 | 1102 | if (embedJava) { |
1102 | 1103 | // https://github.com/processing/processing/issues/2349 |
1103 | 1104 | pw.print("$APPDIR/java/bin/"); |
1104 | 1105 | } |
1105 | 1106 | String runOptionsStr = runOptions.join(" "); |
1106 | 1107 | pw.print("java " + runOptionsStr + |
1107 | 1108 | " -Djava.library.path=\"$APPDIR:$APPDIR/lib\"" + |
| 1109 | + " -Djava.ext.dirs=\"$APPDIR/java/lib/ext\"" + |
| 1110 | + " -Djna.nosys=true" + |
1108 | 1111 | " -cp \"" + exportClassPath + "\"" + |
1109 | 1112 | " " + sketch.getName() + " \"$@\"\n"); |
1110 | 1113 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: todo.txt +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,6 +6,7 @@ X https://github.com/processing/processing/issues/4623 |
6 | 6 | _ might be ext.dirs trouble with spaces in path names? |
7 | 7 | _ or the backwards slashes? |
8 | 8 | X fixes for Python Mode crashing on startup |
| 9 | +X disable ext.dirs on Linux export and set jna.nosys as well |
9 | 10 | _ JavaInputHandler not registering |
10 | 11 |
|
11 | 12 | _ library compilations handled oddly |
|