When trying to run this terminal command for PhoneGap in Ubuntu:
cd ~/Desktop/phonegap-2.7.0/lib/android/bin
./create ~/Desktop/phonegap-code/MyProject com.mycompany.myproject MyProject
I received this error:
./create: line 66: javac: command not found
To fix this, I had to install this (from Synaptic Package Manager):
openjdk-6-jdk
I had to remove the bogus directory that was created on the first creation failure:
rm -rf ~/Desktop/phonegap-code/MyProject
Now, re-run the create command: