for Java1 class