Skip to content

Commit b9fbddd

Browse files
authored
Fix Java PATH problem on Windows
This solves the problem where this batch file may use a different Java version compared to the one provided by the Arduino IDE.
1 parent fedf4d4 commit b9fbddd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/win/maple_upload.bat

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set driverLetter=%~dp0
55
set driverLetter=%driverLetter:~0,2%
66
%driverLetter%
77
cd %~dp0
8+
if exist "C:\Program Files (x86)\Arduino\java\bin" set PATH=C:\Program Files (x86)\Arduino\java\bin;%PATH%
89
java -jar maple_loader.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
910

1011
for /l %%x in (1, 1, 40) do (

0 commit comments

Comments
 (0)