run installJavaLib also in postCopy

I think installJavaLib also needs to be run in postCopy,
though still untested.