I got a segfualt error when running mxmlc on a new flex swf that I was trying to build.
Turns out the problem is that if you have recently updated your Ubuntu installation, it might have reverted to a previous java runtime environment.
To check your environment:
java -version
It should output:
greentheo@kingsnood3:~/Flex_Builder$ java -version
java version “1.6.0_07″
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
If you get a different version you’ll want to switch it to the latest SUN sdk.
try: sudo apt-get sun-java6-jre
Once, it’s installed, change the default java jre to the sun jre with:
sudo update-alternatives –config java
There are 3 alternatives which provide `java’.
Selection Alternative
———————————————–
1 /usr/lib/jvm/java-6-sun/jre/bin/java
*+ 2 /usr/lib/jvm/java-gcj/jre/bin/java
3 /usr/bin/gij-4.2
And choose the option with the Sun Java jre.
Now get back to work on your Flex application!

