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

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -