aspose file tools
The moose likes Ant, Maven and Other Build Tools and the fly likes JUnit 4 error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "JUnit 4 error" Watch "JUnit 4 error" New topic

JUnit 4 error

Nidhi Singhal
Ranch Hand

Joined: Sep 19, 2004
Posts: 89

I get the following error when I run a test class using JUnit 4

Error: javac: invalid flag: path of the test class

I have included junit 4 jar in the class library and jdk in the classpath


Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Are you sure you get this error when you *run* the test? It looks like a compile time error to me...

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
It is sorta covered in the JavaRanch Style Guide.
subject: JUnit 4 error
It's not a secret anymore!