Closed dadul96 closed 3 years ago
Happens to me too, but for PlatformIO (wich afaik directly calls java with arguments without calling the .bat file). Happened only after upgrading Java8 to newest release.
Solved by uninstalling Java8 and installing Java7 again... (Not recommended though, it is heavily outdated)
Edit: After installing Java8_u202 from https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html I'm able to upload agian with Java 8
I have to test the PR.
However, it's not fixed. I still get this error message (or very similar) using Arduino IDE 2.03 which of course does not in itself install or use JAVA. My installed version of JAVA is; java version "1.8.0_361" Java(TM) SE Runtime Environment (build 1.8.0_361-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.361-b09, mixed mode)
and the error message I get when trying to compile BLINK is as follows;
Sketch uses 12804 bytes (9%) of program storage space. Maximum is 131072 bytes. Global variables use 2064 bytes (10%) of dynamic memory, leaving 18416 bytes for local variables. Maximum is 20480 bytes. maple_loader v0.1 Resetting to bootloader via DTR pulse #
#
#
#
#
I am not smart enough to know how to fix this. It looks like a bug or incorrect entry in the platfrom.txt file maybe. Or is it something to do with using 64 bit Java.
You should uninstall Java (JDK or JRE) for 64 bit platform and install 32 version instead. This solved the issue for me.
This problem occurs when a second (different) Java version is installed on a windows PC (besides the one provided with the Arduino IDE). Instead of using the provided Java version of the Arduino IDE the
maple_upload.bat
-file uses the Java version found in the environment path (oftentimes this is a different one).This results in the following error message:
To solve this problem the following line should be added to the maple_upload.bat:
if exist "C:\Program Files (x86)\Arduino\java\bin" set PATH=C:\Program Files (x86)\Arduino\java\bin;%PATH%
This line temporarily changes the PATH during the execution of this batch file and ensures that the correct Java version is used.
This issue also has been discussed here.