tools: copy jar files into $prefix/lib/java

Only if requested by ./configure --prefix=...