fixed the java classes copy and groovy/java integration