fixing java.awt.HeadlessException when starting AVD under ubuntu linux

Developer from somewhere

I kept receiving java.awt.HeadlessException when starting the AVD. I found the fix here

Basically:

sudo apt-get install openjdk-6-jre

Then open the android script from ANDROID_HOME, or wherever your android sdk is, and modify java_cmd=”java” to java_cmd=”/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java”