java.lang.UnsupportedClassVersionError: org/testng/remote/RemoteTestNG
(Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
.....
I use JDK 1.4.2_14 and testng-5.6-jdk14.jar.
The testng.xml look like this:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="TestSuite" verbose="1">
<test name="Test - 1">
<parameter name="param1" value="2" />
<parameter name="param2" value="1234" />
<parameter name="param3" value="10000" />
<parameter name="param4" value="2000077387" />
<parameter name="param5" value="3" />
<parameter name="param6" value="10928" />
<parameter name="param7" value="-10000" />
<parameter name="param8" value="10000" />
<parameter name="param9" value="-10000" />
<classes>
<class
name="test.end2end.Test" />
</classes>
</test>
</suite>
Does anybody knows why this happens?
Thanks,
Tom
--
View this message in context: http://www.nabble.com/Eclipse-Plug-In---Execution-of-a-testcase%3A-java.lang.UnsupportedClassVersionError%3A-tf4488004.html#a12798706
Sent from the testng-users mailing list archive at Nabble.com.
> View this message in context:http://www.nabble.com/Eclipse-Plug-In---Execution-of-a-testcase%3A-ja...
Well, I am not sure this will solve the problem. TestNG plugin is
deciding which internal testng jar to use according to the project
runtime settings (so if the VM is >= 1.5 it will use the
testng-jdk15.jar, otherwiser testng-jdk14.jar). However, this
configuration cannot lead to the above exception as the VM will be
compatible with the chosen jar.
So, I assume there is some weird thing going on. I would try to clean
up the project, double check the classpath, double check the TestNG
plugin settings.
./alex
--
.w( the_mindstorm )p.
TestNG co-founder
EclipseTestNG Creator
--
View this message in context: http://www.nabble.com/Eclipse-Plug-In---Execution-of-a-testcase%3A-java.lang.UnsupportedClassVersionError%3A-tf4488004.html#a12813801
> View this message in context:http://www.nabble.com/Eclipse-Plug-In---Execution-of-a-testcase%3A-ja...
Running the test without having the compliance level set to "javadoc"
results in this message:
[TestNGClassFinder] SKIPPING CLASS class test.end2end.TestNgClazz no TestNG
annotations found
Running the test without having set the project properties ends up with this
message:
java.lang.NoSuchMethodError:
java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
at
org.testng.remote.strprotocol.MessageHelper.replaceUnicodeCharactersWithAscii(MessageHelper.java:149)
...
In case both settings are enabled it works fine.
--
View this message in context: http://www.nabble.com/Eclipse-Plug-In---Execution-of-a-testcase%3A-java.lang.UnsupportedClassVersionError%3A-tf4488004.html#a12898009
I think this last one may be a bug introduced lately. I will check it
and report back.
./alex
--
.w( the_mindstorm )p.
TestNG co-founder
EclipseTestNG Creator
> In case both settings are enabled it works fine.
./alex
--
.w( the_mindstorm )p.
TestNG co-founder
EclipseTestNG Creator