flash error initializing java runtime environment
If you're trying to launch Flash Builder (or Flex Builder) and you're getting an error "JVM Terminated", and/or you're getting the "error initializing java runtime environment" when opening Flash, and you're on a mac, you have probably messed up with you symlinks in the /System/Library/Frameworks/JavaVM.framework/Versions folder. Specifically, you might have changed the symlink of CurrentJDK from 1.5 to 1.6. That's what happened to me anyway. I had to change it because my Java projects are using 1.6, but my Maven was still trying to use 1.5 and it wouldn't build (I think it's the same thing with Ant).
So, to make Maven work, simply put this in your ~/.bash_profile:
And change the symlink of CurrentJDK back to 1.5 by executing this from the shell:
sudo rm CurrentJDK
sudo ln -s 1.5 CurrentJDK
This should take away your Flash/Flex Builder/Flash Builder errors.
There might be better ways of telling Maven which JDK to use than specifying it in your .bash_profile, this thread has some good insight.