I\'m trying to run my junit test (to verify that a properties file loads correctly) but
I get ClassNotFoundException
although the class is there and all requir
Are you sure your test class is in the build folder? You're invoking junit in a separate JVM (fork=true) so it's possible that working folder would change during that invocation and with build being relative, that may cause a problem.
Run ant from command line (not from Eclipse) with -verbose or -debug switch to see the detailed classpath / working dir junit is being invoked with and post the results back here if you're still can't resolve this issue.
Please make sure the output folder in Java Build Path
tab set as like below,which would determine where the .class file are generated.Then clean the project.