fixed reference error for java file