Assuming files are in /src/com/clara/
and main method is in Main.java
compile with javac src/com/clara/*.java
or for Windows users java src\com\clara\*.java
execute with java -cp ./src com.clara.Main
or for Windows users java -cp src com.clara.Main
The -cp flag sets the classpath, in effect, telling Java where to look for the code that makes up your project. More info: http://kevinboone.net/classpath.html/