Fix java config