: I cant compile SOLR 4.0, but i can compile trunk fine. Hmmm... that's suprising, the part of hte build file you pointed out as causing you problems on 4x also exists in trunk.
: Documentation for ant - https://ant.apache.org/manual/Tasks/script.html it : requires some external library. I placed bsf-all-3.1.jar into ant lib : directory but it still fails. I believe the problem is not that you need BSF -- because you are using java6 (you have to to compile Solr) so BSF isn't needed. The problem (i think) is that FreeBSD's JDK doesn't include javascript by default - i believe you just need to install the rhino "js.jar".... http://stackoverflow.com/questions/4649519/jvm-missing-rhino Or, you should be able to work arround this by specifying "-Dlucene.javadoc.url=..." on the command line. (that's all the script is used for -- to compute that) I've opened LUCENE-4415 to try and address this one way or another... https://issues.apache.org/jira/browse/LUCENE-4415 -Hoss