I\'m at a complete loss here. I have a project on an external hard drive called LenseProject. Inside LenseProject, I have .idea, lib, Natives
I ran into a similar issue while writing unit tests. Everything would work at the command line but failed in IntelliJ. IntelliJ would successfully compile but not run the test.
Then I ran across a post on IntelliJ's blog: http://blog.jetbrains.com/idea/2014/03/intellij-idea-13-1-released/
anet says:
March 21, 2014 at 12:20 pm
You may remove the existing junit dependency and allow IDEA to add JUnit library for your from scratch.
New junit doesn’t bundle hamcrest anymore but still depends on it on runtime.
Thanks, Anna
- See more at: http://blog.jetbrains.com/idea/2014/03/intellij-idea-13-1-released/#sthash.2KNQuwZ5.dpuf
I removed JUnit from my project settings and let IntelliJ add it back. Then things worked fine.