I am very new to Raspberry PI. I noticed that you could get anything on Raspberry PI including Java. So using this command:
sudo apt-get update && sudo apt-get install oracle-java7-jdk
I installed JDK 7 on my Raspberry PI.
The problem is, I don't know how to compile. I opened the leaf
editor, wrote the usual HelloWorld code in it and saved it as HelloWorld.java
. However, from there I was stuck. How do I compile this?