Skip to content

Commit 29b8945

Browse files
committed
fix for #2349, use embedded Java with Linux
1 parent a04d181 commit 29b8945

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

app/src/processing/mode/java/JavaBuild.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,10 @@ protected boolean exportApplication(File destFolder,
15591559
pw.print("APPDIR=$(dirname \"$0\")\n"); // more posix compliant
15601560
// another fix for bug #234, LD_LIBRARY_PATH ignored on some platforms
15611561
//ps.print("LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$APPDIR\n");
1562+
if (embedJava) {
1563+
// https://github.com/processing/processing/issues/2349
1564+
pw.print("$APPDIR/java/bin/");
1565+
}
15621566
pw.print("java " + Preferences.get("run.options") +
15631567
" -Djava.library.path=\"$APPDIR:$APPDIR/lib\"" +
15641568
" -cp \"" + exportClassPath + "\"" +

todo.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ X sketchbook location is set to an actual sketch (huh?)
1111
X exported apps on Windows 64 not working?
1212
X https://github.com/processing/processing/issues/2468
1313
X just needed to add the local path for Java
14+
X when exporting with local Java embedded, use that version
15+
X https://github.com/processing/processing/issues/2349
16+
X (we can do this now since we're actually doing the embedding)
1417

1518

1619
high
@@ -40,10 +43,11 @@ _ maybe OS X Java can't look in subfolders? (just auto-adds things)
4043
medium
4144
_ import static causes exception (with fix)
4245
_ https://github.com/processing/processing/issues/8
43-
_ https://github.com/processing/processing/pull/2273
46+
o https://github.com/processing/processing/pull/2273
47+
X can't use this patch, too confusing
4448
_ re/move things from Google Code downloads
4549
_ https://code.google.com/p/support/wiki/DownloadsFAQ
46-
_ actual help with cleaning out the repo
50+
_ clean out the repo
4751
_ https://github.com/processing/processing/issues/1898
4852
_ requires re-forking, so still a ton of work
4953
_ remove non-web stuff from web
@@ -53,9 +57,6 @@ _ add font fixes to the rest of the API
5357
_ https://github.com/processing/processing/commit/eaff673d173b2d27f276cf5c59e3abf6c0fab86b
5458
_ g2.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
5559
_ RenderingHints.VALUE_FRACTIONALMETRICS_ON);
56-
_ when exporting with local Java embedded, use that version
57-
_ https://github.com/processing/processing/issues/2349
58-
_ (we can do this now since we're actually doing the embedding)
5960
_ get stack trace issues with NPE
6061
_ https://github.com/processing/processing/pull/2359
6162
_ dataPath() not working when app is not run from app dir

0 commit comments

Comments
 (0)