Open kleinesfilmroellchen opened 3 years ago
Update: Found the old Processing bug report of mine: https://github.com/processing/processing/issues/5610. Just looked into it and it seems like Processing still doesn't support Java 9+.
I ran into exactly the same issue today when building the Arduino IDE on Windows 10 using Cygwin and the latest version of OpenJDK I installed via choco.
As a workaround, I grabbed OpenJDK8 32-bit via https://www.openlogic.com/openjdk-downloads and was able to successfully build and run the IDE.
For the Arduino IDE support in Visual Studio Code, it seems like one needs to use a version <=1.8.6, as the README over there suggests. There are no binaries for this version, so I decided to compile from source. I followed the official instructions and have all prerequisites properly installed. Everything works fine until I encounter the following error in the
ant dist
:Guessing by the last exception and its stack trace, the code is checking the version string, which has changed its anatomy after the move from 1.8 naming to 9., 10., ... naming in Java 9. I reported a similar issue on Processing a couple of years back, where the solution was "don't use Java 9+", which is ridiculous. (Just before you start suggesting that.) So I'm even suspecting that the issue is similar code, because AFAIK the Arduino IDE is forked from Processing.
Just so you know, I checked and the install instructions don't suggest any particular version of Java, although it seems like they were tested with OpenJDK 1.8. My PATH and JAVA_HOME point to OpenJDK 15. I also tried specifying some other target versions below 1.8.6 and they fail identically.
Any help would be appreciated. Or if there are still mirrors to pre-built 1.8 versions before 1.8.7 (Windows), that would be nice as well.