Version:
TestNG 7.0.0.201908240652 org.testng.eclipse.feature.group Cedric BeustEclipse Platform 4.14.0.v20191210-0610 org.eclipse.platform.feature.group Eclipse.org
Windows 10
I had upgraded/updated TestNG using the Eclipse "Check for Update" feature.
Unfortunately, I cannot run any TestNG Test/Suite anymore.
As suggested, I created a new Java Project, added the TestNG library, and Example1 code.
Which is zipped up and attached to this.
When I tried to run it, I got the same error as with my regular code.
[RemoteTestNG] detected TestNG version 7.0.1
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/Stage
at org.testng.internal.Configuration.<init>(Configuration.java:33)
at org.testng.TestNG.init(TestNG.java:216)
at org.testng.TestNG.<init>(TestNG.java:200)
at org.testng.remote.AbstractRemoteTestNG.<init>(AbstractRemoteTestNG.java:17)
at org.testng.remote.support.RemoteTestNG6_12.<init>(RemoteTestNG6_12.java:18)
at org.testng.remote.support.RemoteTestNGFactory6_12.createRemoteTestNG(RemoteTestNGFactory6_12.java:16)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:67)
Caused by: java.lang.ClassNotFoundException: com.google.inject.Stage
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:604)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 7 more
If I "downgrade to 6.14.3, it works as expected, but 7.x is having issues for me.
It would seem that com.google.inject.stage (which I am not familiar with) is missing.
Was it a dependency that did not get included?