Skip to content

Commit 5d8356a

Browse files
committed
looking into embedded Java issue w/ 64-bit Windows batch script
1 parent 653fff3 commit 5d8356a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,8 @@ protected boolean exportApplication(File destFolder,
12781278
File batFile = new File(destFolder, sketch.getName() + ".bat");
12791279
PrintWriter writer = PApplet.createWriter(batFile);
12801280
writer.println("@echo off");
1281-
writer.println("java -Djava.ext.dirs=lib -Djava.library.path=lib " + sketch.getName());
1281+
String javaPath = embedJava ? ".\\java\\bin\\java.exe" : "java";
1282+
writer.println(javaPath + " -Djava.ext.dirs=lib -Djava.library.path=lib " + sketch.getName());
12821283
writer.flush();
12831284
writer.close();
12841285
} else {

todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ X sketchbook location is set to an actual sketch (huh?)
1111

1212

1313
high
14+
_ new launch4j 3.4
15+
_ http://sourceforge.net/projects/launch4j/files/launch4j-3/3.4/
1416
_ exported apps on Windows 64 not working?
1517
_ https://github.com/processing/processing/issues/2468
1618
_ sketch sometimes simply does not launch

0 commit comments

Comments
 (0)