[Libreoffice] Autogen.sh pb with junit

Jonathan Aquilina eagles051387 at gmail.com
Sun Apr 3 23:47:11 PDT 2011


On 03/04/2011 08:36, Julien Nabet wrote:
> Hello,
>
> Since 2 days, i've been got this pb when I call ./autogen.sh :
> checking for JUnit 4... no
> configure: error: cannot find JUnit 4 jar; please install one in the 
> default
> location (/usr/share/java), specify its pathname via
> --with-junit=..., or disable it via --without-junit
>
> On my config, the following lines (line 7662 to l 7664):
>         if test -e /usr/share/java/hamcrest-core.jar; then
>             
> OOO_JUNIT_JAR=$OOO_JUNIT_JAR:/usr/share/java/hamcrest-core.jar
>         fi
>
> seem the cause of this problem.
>
> Because of the hamcrest lines, line 7671-7672 (junit detection) :
>    "$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" 2>&5 | \
>         grep org/junit/Before.class > /dev/null 2>&5
> can't work.
>
> So for the moment, i put the hamcrest lines in comment but I'd like to 
> understand how the hamcrest lines could work or what is the problem 
> with my config.
>
> Julien.
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> En finir avec le spam? Yahoo! Mail vous offre la meilleure protection 
> possible contre les messages non sollicités http://mail.yahoo.fr 
> Yahoo! Mail _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
Julien

I would like to add I have the openjdk jdk and jre installed  on my 
linux netbook, and its not finding the jdk and jre which are installed 
on my system which makes the unit tests rather useless in my opinion if 
one cant run them on their system.


More information about the LibreOffice mailing list