Java was started but returned exit code=13
Windows 7 Pro 64-bit Service Pack 1
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) Client VM (build 25.101-b13, mixed mode, sharing)
The reason for that error was that I've downloaded 64-bit version of SW4STM32 (i.e. 64-bit Eclipse), but my system did not have 64-bit version of Java.
Here is how to verify if your system supports 64-bit Java. You need to run this command:
java -d64 -version
In my case, it did not have 64-bit Java:
Error: This Java instance does not support a 64-bit JVM.
Please install the desired version.
So I had 2 choices:
I decided to go with the 1st option (download 64-bit Java and keep 64-bit IDE) b/c I thought that with 32-bit IDE I would (most likely) get 32-bit ST-Link Utility and people said you need 64-bit ST-link on my 64-bit Win7, so I wanted to avoid an extra step of then re-downloading 64-bit ST-link and so it all started to look like going with 64-bit IDE is a better option.
I did it through Java Update, however you could aslo download it directly from Oracle from this page: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
c:\>java -d64 -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
As you could see above, 64-bit Java was successfully installed.
After installing 64-bit Java, I was able to run Eclipse IDE i.e. System Workbench for STM32. Also, here is a good tutorial on getting started with SW4STM32. Thanks!