java.lang.NoClassDefFoundError: org/testng/TestNG


Samebug tips

Set the path for java. Try to look it from here.


,
via askubuntu.com by Unknown author

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all


,
via netty.io by Unknown author

Solutions on the web

Solution icon of stackoverflow
org/testng/TestNG

Solution icon of stackoverflow
via Stack Overflow by Anton
, 10 months ago
org/testng/TestNG

Solution icon of web
via jetbrains.com by Unknown author, 11 months ago
org/testng/TestNG

Solution icon of web
org/testng/TestNG

Solution icon of web
via hivmr.com by Unknown author, 1 year ago
org/testng/IHookable

Solution icon of youtrack
via YouTrack by Unknown author, 1 year ago
org/testng/remote/strprotocol/AbstractRemoteTestRunnerClient

Solution icon of web
via blogspot.com by Unknown author, 1 year ago
org/Command

Solution icon of web
org/Command

Solution icon of web
via blogspot.mx by Unknown author, 1 year ago
org/Command

Stack trace

java.lang.NoClassDefFoundError: org/testng/TestNG
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.lang.ClassNotFoundException: org.testng.TestNG
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 18 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
1630 more bugmates