Java application fails to start
<p>I am currently using Ubuntu 11.10 and java SE 1.6.0_26. I am trying to run a very simple  "Hello World" app. I placed the the java file <code>HelloWorld.java</code> on the Home folder. I compiled it using the command <code>javac HelloWorld.java</code>. I think its working because it doesn't show any compilation error and a <code>HelloWorld.class</code> is created. </p>

<p>When I typed the command <code>java HelloWorld</code> I have this error: </p>

<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
Caused by: java.lang.ClassNotFoundException: HelloWorld
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: HelloWorld.  Program will exit.
</code></pre>

<p>BTW, here is my java code:</p>

<pre><code>public class HelloWorld {
    public static void main (String args[]) {
        System.out.println("Hello World!!!");
    }
}
</code></pre>
