: > TestCase.java:8: package junit.framework does not exist
: >     [javac] import junit.framework.TestCase;

: No, it's not just you. The build requires the JUnit library, which is

There has allways been a JUnit dependency, but I recently beefed up the
test suite coverage and made the change so that the "dist" target requires
the teests be compiled and run.

I'm sorry I didn't email an announcement about the change, but it had been
discussed on solr-dev in a few threads, and I assumed anyone who would be
building from source would be subscribed there.

: not provided. I'm guessing that whoever put that in is using an IDE
: that automatically includes JUnit in the classpath. For now, you can
: download the jar from www.junit.org and drop it into lib/.

Actually it's was a concious choice not to include junit.jar in the
solr/lib directly -- a lot of people smarter then me (mainly Erik
Hatcher) have said that the only *right* way to use JUnit with Ant is to
copy the junit.jar into your ANT_HOME/lib directory.  There are lots of
CLASSSPATH issues that you have to be wary of...

http://www.nabble.com/Re%3A-Contrib-in-oblivion-p1458269.html
http://www.nabble.com/Re%3A-inital-observations-from-a-newbie-p2970514.html
http://ant.apache.org/faq.html#delegating-classloader

-Hoss

Reply via email to