adds reference to java file