fixes java compile issues