bug in naming jre1.5 and jre1.6

I play with diferent names of pakages classes and methods. And I got strange exception....

Just copy next code and try to compile and run it.

<code>

package testMain;

public class testMain {

public static void main(String[] params){

}

}

</code>

I see:

java.lang.UnsupportedClassVersionError: Bad version number in .class file

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)

at java.net.URLClassLoader.access$100(URLClassLoader.java:56)

at java.net.URLClassLoader$1.run(URLClassLoader.java:195)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)

at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

Exception in thread "main"

I supose it is a bug in jre. Can anyone give me answere why?

[1317 byte] By [leonid_mogileva] at [2007-11-26 20:47:51]
# 1
Compiles and runs OK.Place the .class file in a directory named "testMain", and execute the program from the parent directory with "java testMain.testMain"
ChuckBinga at 2007-7-10 2:11:01 > top of Java-index,Core,Core APIs...
# 2
you are right. The problem was in junit4 which was in classpath in java project (I use eclipse and start appication from it).
leonid_mogileva at 2007-7-10 2:11:01 > top of Java-index,Core,Core APIs...