SW4STM32 IDE crashes when selecting C Project
Hi all,
I’m trying to use Ac6 SW4STM32 but it keeps on crashing when I choose File/New/C Project. The C Project dialog box appears for about half a second then both it and the IDE crash.
My PC is as follows :-
Intel P4 @ 2GHz ; 2 GB RAM ; Kubuntu Linux 14.04 LTS
I thought that I might be having a problem with Java, however I’ve checked the system and Java is installed as follows.
/Ac6/SystemWorkbench$ java -version
java version “1.7.0_121”
OpenJDK Runtime Environment (IcedTea 2.6.8) (7u121-2.6.8-1ubuntu0.14.04.3)
OpenJDK Client VM (build 24.121-b00, mixed mode, sharing)
I wondered if it was IcedTea that was the problem and so I installed Oracle Java 7 (jdk-7u80-linux-i586.tar.gz). The installation completed without any errors or warnings. I then added the Oracle Java to my system by using the following command.
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_11/jre/bin/java 1
as given on the following web page.
OracleJava_7/Oracle%20Java%20JDK%207%20on%20Ubuntu%20Linux%20-%20Source%20or%20RPM%20Installation%20-%20LinuxConfig_org.htm
I then checked on the status of the installation by using the following command:
sudo update-alternatives --list java
sudo password for kub:
/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java
/usr/lib/jvm/jdk1.7.0_80/jre/bin/java
As you can see from the last line, the system has “recognised” Oracle Java as being present.
Within SW4STM32 I’ve then checked Window/Preferences/Oomph/Java Virtual Machine and in the System folder I found the following five options.
/usr/bin/jvm/default-java
/usr/bin/jvm/java-1.7.0-openjdk-i386
/usr/bin/jvm/jdk1.7.0_80
/usr/bin/jvm/java-7-openjdk-i386
/usr/bin/jvm/java-7-openjdk-i386/jre (Current)
However, when I then tried to run SystemWorkbench it still crashed in the same way as detailed above.
Has this happened to anyone else ? If so, how did you cure the problem ?
Is there some change I have to make to SW4STM32 to get it to use Oracle Java instead of IcedTea and if so what do I change and where do I make the change(s) ?
Yours sincerely,
Stuart