Cannot run compiled java class, error: Class names are only accepted if annotation processing is explicitly requested
<p>Ok, this seems to be a typical error as of discussing a lot in <a href="http://stackoverflow.com/questions/5063266/java-compile-problem-class-names-are-only-accepted-if-annotation-processing-is">here</a>, however I still don't know what's wrong with my program. I use commmand prompt to compile my java classes.</p>

<p><code>TestQueueString.java</code> is a simple class I create to test my implementation 
of the block representation of queue in <code>QueueStringBlock.java</code>. This is how I compile.</p>

<pre><code>C:\Users\ME\Desktop\Lab&gt;javac -cp DAT.jar;Exceptions.jar QueueStringBlock.java TestQueueString.java

C:\Users\ME\Desktop\Lab&gt;javac TestQueueString
error: Class names, 'TestQueueString', are only accepted if annotation processing is
explicitly requested 1 error
</code></pre>

<p>Any help would be appreciated.</p>

<p><strong>EDIT</strong></p>

<p>And when I use <code>java</code> instead of <code>javac</code>, it always asks for main method I guess:</p>

<pre><code>C:\Users\TRI\Desktop\Lab&gt;java -cp DAT.jar;Exceptions.jar TestQueueString
Exception in thread "main" java.lang.NoClassDefFoundError: TestQueueString
Caused by: java.lang.ClassNotFoundException: TestQueueString
        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:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: TestQueueString.  Program will exit.
</code></pre>

<p>Be noticed that it does produce .class files after compiling :)</p>
