-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/Stage #472
Comments
i reported the issue here testng-team/testng#2223 |
closing this, fixed by upstream testng-team/testng#2264 |
I am new to TestNG. I am also getting this error. Please let me know how to resolve this one? [RemoteTestNG] detected TestNG version 7.0.1 |
not sure how you manage the dependency in your project, but you can either downgrade to testng 7.0.0 or upgrade to 7.1.1-SNAPSHOT. |
As i mentioned i am very new to this TestNG. I just added my plugin to Eclipse. I will try to do whatever you mentioned. Thank you so much for your response. |
Thanks for your Help. I downgraded my TestNg to 7.0.0. It working as expected. |
issue fixed. for people use "TestNG Library" in eclipse, pls update to testng 7.2.0 with following update site url: https://dl.bintray.com/testng-team/testng-p2-release/7.2.0/ |
@missedone : Thanks so much. Fixed the issue. Saved many hours :) |
Download the guice 4.2.2 Jar file to solve this issues and place that guice into project build path add it as external jars |
@Viraj6937 , you don't need to download the jar yourself, it's been fixed, see my comment: #472 (comment) |
Adding guice4.2.2 to the project Build path worked for me. |
Thx |
https://dl.bintray.com/testng-team/testng-eclipse-release/. I have install the new think through this link and my problem has been solved . |
How do I add the location in System.setproperty for Microsoft edge versions 18. |
Go to you your Eclips and click in the help then click in the Install the
new software and then a new window open and you can past the link in the
type filter text and check the all the check box and click in the nest
until the new jar files add to your system and your Eclips will request you
to restart .
…On Fri, Apr 24, 2020 at 2:16 PM daksha1933 ***@***.***> wrote:
How do I add the location in System.setproperty for Microsoft edge
versions 18.
I have successfully installed the driver in command prompt.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#472 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOZK2HGOA6QYQXDUX4GOTNLROH6UJANCNFSM4KHDVMZA>
.
--
Regards,
M. Haroon Nayebkhail,
Cell: 703 470 2094
Email:
*nayebkhail.haroon@gmail.com <nayebkhail.haroon@gmail.com>*
|
|
Thank you I figured it out. |
it worked for me after adding jar from https://github.com/google/guice/wiki/Guice422 to java build path |
add this dependency and the issue will get resolved |
Worked for me too. Thanks. |
i have replaced my jar with testng7.0.0 ...and it works..thanks |
Eres un Crack!!!! 1 día entero buscando esta solución!.... |
Simply update TestNG version to 7.2.x. Fixed! That's it. Happy Testing :) |
You just need to add "Google Guice Core Library (https://mvnrepository.com/artifact/com.google.inject/guice)" dependency in your pom.xml from mvn Repository. com.google.inject guice 5.1.0It worked for me. |
Recently i have updated TestNG version 7.0.1 in Eclipse and while running the code i keep getting this error information :
[RemoteTestNG] detected TestNG version 7.0.1
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/Stage
at org.testng.internal.Configuration.(Configuration.java:33)
at org.testng.TestNG.init(TestNG.java:216)
at org.testng.TestNG.(TestNG.java:200)
at org.testng.remote.AbstractRemoteTestNG.(AbstractRemoteTestNG.java:17)
at org.testng.remote.support.RemoteTestNG6_12.(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:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 7 more
Note- Before the TestNG 7.0.1 all the script was running fine but after updated of TestNG 7.0.1. i am getting above error. Please help me out.
The text was updated successfully, but these errors were encountered: