dcsimg
Facing problem with Junit
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sanjay_gupta
Posted On:   Tuesday, September 12, 2006 07:36 AM

when I am trying to run the following command, i am getting error: java org.junit.runner.JUnitCore org.junit.tests.AllTests 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.ne   More>>

when I am trying to run the following command, i am getting error:

java org.junit.runner.JUnitCore org.junit.tests.AllTests



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)


What can I do for this? please respond.

   <<Less

Re: Facing problem with Junit

Posted By:   Christopher_Koenigsberg  
Posted On:   Sunday, September 17, 2006 07:11 PM

You're using an older JVM to try and run a JUnit that was compiled with a newer one.
About | Sitemap | Contact