Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Exception in thread "main" java.lang.NoClassDefFoundError:(java exception)
icon5.gif  Exception in thread "main" java.lang.NoClassDefFoundError: [message #1759546] Wed, 12 April 2017 19:51
Daniel jadu is currently offline Daniel jaduFriend
Messages: 2
Registered: April 2017
Junior Member
Hello guys I got following code:

I am using JRE System Library [JavaSE-1.8]

import org.openqa.selenium.WebDriver;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

public class Selenium {
	static String driverPath="E:\\[Pågående Projekt]\\Selenium\\Resources\\";
	public WebDriver driver;

	public void setUp() {
		System.out.println("launching chrome browser");
		System.setProperty("", driverPath+"chromedriver.exe");
		driver = new ChromeDriver();
	public void testGooglePageTitleInIEBrowser() {
		String strPageTitle = driver.getTitle();
		System.out.println("Page title: - "+strPageTitle);
		Assert.assertTrue(strPageTitle.equalsIgnoreCase("Google"), "Page title doesn't match");

	public void tearDown() {
		if(driver!=null) {
			System.out.println("Closing chrome browser");

I get this error while running my macro

Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.privateGetMethodRecursive(Unknown Source)
	at java.lang.Class.getMethod0(Unknown Source)
	at java.lang.Class.getMethod(Unknown Source)
	at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
	at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.beust.jcommander.ParameterException
	at Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 7 more

Could someone help me?

Thank you in advance


Previous Topic:[neon] Display errors on AbstractTableField
Next Topic:[NEON] Overriding org.eclipse.scout.rt.ui.html
Goto Forum:

Current Time: Tue Sep 22 05:52:22 GMT 2020

Powered by FUDForum. Page generated in 0.01845 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top