When I try to compile a java program with javac, I get an error:
javac
The program \'javac\' can be found in the following packages: * default-jdk * ecj
I was having the same problem. I used the following command
sudo apt-get install openjdk-7-jdk
The app compiled after that. Not sure what the difference is to the above solutions. Maybe I wouldn't of had to specify a version.