Fix java configuration for current packages