Issues Installing System Workbench for STM32 from Eclipse
Okay, after many iterations I now have a working instruction to install the OpenSTM32 tools with “Eclipse for Java”.
NOTE: You will need to know how to add package repositories in Eclipse using the Help->Install New Software dialog. When I say “Install”, it means add the package repository and then install the tools that it finds.
1) Check what version of eclipse is supported by the current OpenSTM tools. I found the information here:
Installing System Workbench for STM32 from Eclipse
2) The STM32 tools seem to require JDK 8. I tested with 10, 12 and 13 with no success. OpenJDK 8 can be downloaded here:
https://adoptopenjdk.net/releases.html?variant=openjdk8&jvmVariant=hotspot
To set it up, I personally use the installer and then ensure the PATH environment variable is properly configured with JDK 8 BEFORE any other JDK paths (I use apt on Linux). You could also download and extract the zip file, then set up the PATH manually. (Note, this does not affect the java workspace or project settings, just the version that Eclipse is using).
This bears repeating: Ensure your PATH is correctly set to have JDK 8 first.
3) (Optional) I install the C Development Tools (CDT) manually. This is not necessary from what I can tell, but it gives more control over the tools (and I install the C Toolbar). The correct repository for your version of Eclipse can be found here: https://www.eclipse.org/cdt/downloads.php
4) Install the OpenSTM32 tools. I have been using the eclipse addon repository here: http://www.ac6-tools.com/Eclipse-updates/org.openstm32.system-workbench.update-site-v2/
That will give you a clean Eclipse install that can be used with Java and C/C++.
Good Luck!