New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java Runtime PATH problem under Windows (EXCEPTION_ACCESS_VIOLATION) #813
Comments
Happens to me too, but for PlatformIO (wich afaik directly calls java with arguments without calling the .bat file). 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. |
Merge pull request #814 from dadul96/Fix_Java_PATH_problem_Windows
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; 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. A fatal error has been detected by the Java Runtime Environment:EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000007110b5db, pid=8016, tid=0x0000000000003b94JRE version: Java(TM) SE Runtime Environment (8.0_361) (build 1.8.0_361-b09)Java VM: Java HotSpot(TM) 64-Bit Server VM (25.361-b09 mixed mode windows-amd64 compressed oops)Problematic frame:C [jSSC-2.8_x86_64.dll+0xb5db]Failed to write core dump. Minidumps are not enabled by default on client versions of WindowsAn error report file with more information is saved as:C:\Users\Mike\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2022.9.26\win\hs_err_pid8016.logI 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 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.
The text was updated successfully, but these errors were encountered: