Exception in thread "main" java.lang.UnsupportedClassVersionError: org/testng/remote/RemoteTestNG has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

63 views
Skip to first unread message

Pratibha Bhawan

unread,
Oct 11, 2024, 1:20:43 AM10/11/24
to seleniu...@googlegroups.com
Hi, 

I am trying to setup automation test env Maven+ Testng but I am getting following error:-

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/testng/remote/RemoteTestNG has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

at java.lang.ClassLoader.defineClass1(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.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 sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)


Can someone please help me

Krishnan Mahadevan

unread,
Oct 11, 2024, 1:22:18 AM10/11/24
to seleniu...@googlegroups.com
Please upgrade to JDK11 and retry.


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 Scribblings @ https://rationaleemotions.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAL-e5k4X3_ZP-cfGRVuSby%3D0QQh5T9xoVXVoLeGxfWKCcT7mZw%40mail.gmail.com.

Pratibha Bhawan

unread,
Oct 11, 2024, 1:29:12 AM10/11/24
to seleniu...@googlegroups.com
Thanks, it's working. 

Reply all
Reply to author
Forward
0 new messages