Here's how my program works: 

-bash-4.1$ pico -w One.java

I created it. I show it to you: 

-bash-4.1$ ls -ld One.java
-rw-r--r-- 1 dgerman faculty 100 Feb 21 01:20 One.java

I compile it: 

-bash-4.1$ javac One.java

I run it: 

-bash-4.1$ java One
Hi there!
-bash-4.1$

That's about it. 

This is the simplest possible program (shortest, that is) in Java. 

--