Fixing java config