run installJavaLib also in postCopy

I think installJavaLib also needs to be run in postCopy,
though still untested.
Merge pull request #382 from juhp/patch-2

run installJavaLib also in postCopy