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 have Ubuntu 12.10, with java "1.6.0_27", this command makes javac available:
sudo apt-get install default-jdk
Then compile it like this:
el@apollo:~/retreat3$ javac HelloWorld.java el@apollo:~/retreat3$ java HelloWorld Hello, World!