Skip to content

Commit 5317234

Browse files
authored
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 (#1314)
1 parent 735bfa6 commit 5317234

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)