java - JUnit error: Class names, 'org.junit.runner.JUnitCore', are only accepted if annotation processing is explicitly requested -


after compiling java file without errors, when try run class test units following command:

javac -cp .:junit-4.12.jar:hamcrest-core-1.3.jar org.junit.runner.junitcore nameoftheclass

i following error:

error: class names, 'org.junit.runner.junitcore,digpowtest, nameoftheclass', accepted if annotation processing explicitly requested

any idea?

thanks in advance!

are missing ".java" filename on complile?

i.e.

javac -cp .:junit-4.12.jar:hamcrest-core-1.3.jar org.junit.runner.junitcore nameoftheclass.java 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -