Newest Testng version that supports JDK 1.6

1,832 views
Skip to first unread message

Jennifer Li

unread,
Jun 22, 2015, 2:10:07 PM6/22/15
to testng...@googlegroups.com
[re-sent..]

Hello All,

I've been using Testng 5.5 for JDK 1.5 for a long time, and now would like to upgrade to a newer version. The latest 6.9.4 requires Java 7 for compiling that my environment doesn't support yet. I wonder what the newest version of Testng that supports JDK 1.6 for compiling. Also, is there a plan to have the latest version supporting JDK 1.6 for compiling.

Thank you!
Jennifer

Cédric Beust ♔

unread,
Jun 22, 2015, 2:15:15 PM6/22/15
to testng...@googlegroups.com
Hi Jennifer,

The last version of TestNG supporting JDK 1.5 and 1.6 is 6.8.21.



-- 
Cédric


--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

Jennifer Li

unread,
Jun 25, 2015, 2:12:29 PM6/25/15
to testng...@googlegroups.com, ced...@beust.com
Hi Cedric,

Thank you for your information!

However, when running TestNG 6.8.21 on JRE 1.6.0_07, the following exception was thrown. It seems that jcommander is not available at the runtime for some reason. Any thought about it please.

==============
bash-3.2# ant test
Buildfile: build.xml

test:
   [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
   [testng] Caused by: java.lang.ClassNotFoundException: com.beust.jcommander.ParameterException
   [testng]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   [testng]     at java.security.AccessController.doPrivileged(Native Method)
   [testng]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   [testng]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   [testng]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
   [testng]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   [testng]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   [testng] The tests failed.

BUILD SUCCESSFUL
Total time: 1 second
============

Thank you.
Jennifer

吴亭

unread,
Jun 25, 2015, 2:49:36 PM6/25/15
to testng...@googlegroups.com
You need have jcommander in your classpath: my chart is come from latest testng
内嵌图片 1

Jennifer Li

unread,
Jun 25, 2015, 7:15:17 PM6/25/15
to testng...@googlegroups.com
Thank you for the info. Which version of jcommander is recommended for TestNG 6.8.21?

Jennifer

Krishnan Mahadevan

unread,
Jun 26, 2015, 1:52:28 AM6/26/15
to testng...@googlegroups.com
As per the pom file, JCommander 1.5 is the version that you would need.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Jennifer Li

unread,
Jun 26, 2015, 2:11:47 AM6/26/15
to testng...@googlegroups.com
Thank you Krishnan for your information. It really helps!

Jennifer
Reply all
Reply to author
Forward
0 new messages