looking into embedded Java issue w/ 64-bit Windows batch script

This commit is contained in:
Ben Fry
2014-05-04 16:25:58 -04:00
parent d1a181a4a7
commit a700862f4c
2 changed files with 4 additions and 1 deletions

View File

@@ -1278,7 +1278,8 @@ public class JavaBuild {
File batFile = new File(destFolder, sketch.getName() + ".bat");
PrintWriter writer = PApplet.createWriter(batFile);
writer.println("@echo off");
writer.println("java -Djava.ext.dirs=lib -Djava.library.path=lib " + sketch.getName());
String javaPath = embedJava ? ".\\java\\bin\\java.exe" : "java";
writer.println(javaPath + " -Djava.ext.dirs=lib -Djava.library.path=lib " + sketch.getName());
writer.flush();
writer.close();
} else {

View File

@@ -11,6 +11,8 @@ X sketchbook location is set to an actual sketch (huh?)
high
_ new launch4j 3.4
_ http://sourceforge.net/projects/launch4j/files/launch4j-3/3.4/
_ exported apps on Windows 64 not working?
_ https://github.com/processing/processing/issues/2468
_ sketch sometimes simply does not launch