Skip to content

Commit cd5e645

Browse files
committed
allow exported apps on windows to be run from anywhere on the system instead of requiring it to be in the same folder as the executable
1 parent 2955cb2 commit cd5e645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ protected boolean exportApplication(File destFolder,
997997
XML clazzPath = config.addChild("classPath");
998998
clazzPath.addChild("mainClass").setContent(sketch.getMainName());
999999
for (String jarName : jarList) {
1000-
clazzPath.addChild("cp").setContent("lib/" + jarName);
1000+
clazzPath.addChild("cp").setContent("%EXEDIR%/lib/" + jarName);
10011001
}
10021002
XML jre = config.addChild("jre");
10031003
if (embedJava) {

0 commit comments

Comments
 (0)