简体   繁体   English

无法初始化 class org.testng.eclipse.util.ClassMethodsSuite

[英]Could not initialize class org.testng.eclipse.util.ClassMethodsSuite

java.lang.NoClassDefFoundError: Could not initialize class org.testng.eclipse.util.ClassMethodsSuite at org.testng.eclipse.util.SuiteGenerator.createCustomizedSuite(SuiteGenerator.java:34) at org.testng.eclipse.ui.util.ConfigurationHelper.createLaunchSuites(ConfigurationHelper.java:604) at org.testng.eclipse.ui.util.ConfigurationHelper.getLaunchSuites(ConfigurationHelper.java:448) at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.createVMRunner(TestNGLaunchConfigurationDelegate.java:315) at org.Z332777618BCF7DE72757F93CE304EAFA java.lang.NoClassDefFoundError: Could not initialize class org.testng.eclipse.util.ClassMethodsSuite at org.testng.eclipse.util.SuiteGenerator.createCustomizedSuite(SuiteGenerator.java:34) at org.testng.eclipse.ui.util.ConfigurationHelper .createLaunchSuites(ConfigurationHelper.java:604) at org.testng.eclipse.ui.util.ConfigurationHelper.getLaunchSuites(ConfigurationHelper.java:448) at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.createVMRunner(TestNGLaunchConfigurationDelegate.java:315) at org.Z332777618BCF7DE72757F93CE304EAFA Z.eclipse.launch.TestNGLaunchConfigurationDelegate.launchTypes(TestNGLaunchConfigurationDelegate.java:156) at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.launch(TestNGLaunchConfigurationDelegate.java:93) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:862) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:720) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1029) at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1243) at org.eclipse.core.internal.jobs. Z.eclipse.launch.TestNGLaunchConfigurationDelegate.launchTypes(TestNGLaunchConfigurationDelegate.java:156) at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.launch(TestNGLaunchConfigurationDelegate.java:93) at org.eclipse.debug.internal.core.LaunchConfiguration.launch( LaunchConfiguration.java:862) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:720) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1029) at org .eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1243) at org.Z6B7B655DD22FAA3F10677Zcore.internal.job. Worker.run(Worker.java:63) Worker.run(Worker.java:63)

Uninstall the TestNG Plugin & Reinstall the new one.卸载 TestNG 插件并重新安装新的。 It works for me.这个对我有用。

Uninstalled TestNg and reinstalled and now the error is not occuring卸载 TestNg 并重新安装,现在没有出现错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法初始化类 org.eclipse.persistence.jaxb.BeanValidationHelper - Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper Tomcat 7启动问题:无法初始化类org.apache.tomcat.util.descriptor.DigesterFactory - Tomcat 7 startup problems: Could not initialize class org.apache.tomcat.util.descriptor.DigesterFactory Tomee Maven安装目标发送:无法初始化类org.apache.openejb.util.JuliLogStreamFactory - Tomee maven install goal sends: Could not initialize class org.apache.openejb.util.JuliLogStreamFactory JUnit 测试因异常“无法初始化 class org.apache.logging.log4j.util.PropertiesUtil”而失败 - JUnit tests fail due to exception "Could not initialize class org.apache.logging.log4j.util.PropertiesUtil" 无法找到或加载主类org.testng.remote.RemoteTestNG-在Eclipse中 - Could not find or load main class org.testng.remote.RemoteTestNG - in Eclipse 如何解决:无法找到或加载主class org.testng.Converter; eclipse 中的错误? - How to solve :Could not find or load main class org.testng.Converter; error in eclipse? Spring Boot 应用程序无法初始化类 org.apache.logging.log4j.util.PropertiesUtil - Spring Boot Application Could not initialize class org.apache.logging.log4j.util.PropertiesUtil java.lang.NoClassDefFoundError:无法初始化类 org.mockito.internal.util.MockUtil - java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil 渲染宏时出错 - 无法初始化类org.apache.xmlrpc.util.SAXParsers - Error rendering macro - Could not initialize class org.apache.xmlrpc.util.SAXParsers java.lang.NoClassDefFoundError:无法初始化 class org.apache.jmeter.gui.util.MenuFactory - java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM