fix for linux shell script, add notes to faq about ImageIcon

This commit is contained in:
benfry
2005-12-01 14:44:16 +00:00
parent 1a0b143f81
commit c3dcfb7da2
2 changed files with 12 additions and 7 deletions
+3 -1
View File
@@ -2193,7 +2193,7 @@ public class Sketch {
} else {
for (int i = 0; i < jarList.length; i++) {
if (i != 0) exportClassPath.append(":");
exportClassPath.append("lib/" + jarList[i]);
exportClassPath.append("$APPDIR/lib/" + jarList[i]);
}
}
@@ -2248,6 +2248,8 @@ public class Sketch {
// do the newlines explicitly so that windows CRLF
// 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");
ps.print("java " + Preferences.get("run.options") +
" -cp " + exportClassPath +
" " + this.name + "\n");