dcsimg
I can't test JUnit using java org.junit.runner.JUnitCore org.junit.tests.AllTests.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   pratik_khanna
Posted On:   Monday, November 6, 2006 02:10 AM

I have Java 1.5 installed on my system and have recently installed junit 4.1. I have tried testing it using the command java org.junit.runner.JUnitCore org.junit.tests.AllTests but am getting this error : Exception in thread "main" java.lang.UnsupportedClassVersionError: org/junit/run ner/JUnitCore (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass (Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassL   More>>

I have Java 1.5 installed on my system and have recently

installed junit 4.1. I have tried testing it using the

command java org.junit.runner.JUnitCore org.junit.tests.AllTests but am getting this error :

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/junit/run

ner/JUnitCore (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass (Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$100(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)..

Can someone tell the reason for the same.

Thanks,
Pratik

   <<Less
About | Sitemap | Contact