Help with running java simple program


Hi everyone ,

new to cloud 9 i am trying to running a simple hello world .java program and i am getting this error:
Building and running ReadStrings
bash: line 3: javac: command not found
Error: Could not find or load main class ReadStrings
i see that there is no java jdk installed when i run sudo apt-get install jdk7-jdk command its not working so what should i do?


In order to help you, it would be nice if you could provide the following:

  1. Your code.
  2. Your compilation and execution commands.

Additionally, it is recommended you run a sudo apt-get update before trying to install Java JDK.