fix for LD_LIBRARY_PATH being ignored on some linux platforms

This commit is contained in:
benfry
2006-02-19 18:01:34 +00:00
parent d7af728499
commit 715082da6e
+3 -1
View File
@@ -2254,8 +2254,10 @@ public class Sketch {
// isn't used when exporting for unix
ps.print("#!/bin/sh\n\n");
ps.print("APPDIR=`dirname $0`\n");
ps.print("LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$APPDIR\n");
// another fix for bug #234
//ps.print("LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$APPDIR\n");
ps.print("java " + Preferences.get("run.options") +
" -Djava.library.path=$APPDIR" +
" -cp " + exportClassPath +
" " + this.name + "\n");