java - Exception in thread "main" Error in Eclipse when trying to run TestNG class -


when attempt run sample testng class in eclipse java 1.7.0_79 following errror:

exception in thread "main" com.beust.jcommander.parameterexception: unknown option: -protocol @ com.beust.jcommander.jcommander.parsevalues(jcommander.java:742) @ com.beust.jcommander.jcommander.parse(jcommander.java:282) @ com.beust.jcommander.jcommander.parse(jcommander.java:265) @ com.beust.jcommander.jcommander.<init>(jcommander.java:210) @ org.testng.remote.remotetestng.main(remotetestng.java:162 

i have tried installing testng through eclipse store, when didn't work. uninstalled , did through www.beust.com/eclipse site.

my class doesn't show errors, project have question mark in lower-left part of image.

i thought because missing jcommander.jar. i've gone , tracked down , included in libraries.

the weird thing is, running same configurations on windows pc , able testng scripts running, when go through same setup on mac, error.

this code i'm trying run:

import org.testng.annotations.test;  public class newtest {   @test   public void testmethod() {       system.out.println("first testng test");   } } 

make sure added jcommander.jar file classpath if using project without maven. make sure project structure has "testng" library has 1 testng.jar file inside it.


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -