Fix install rules for Java install