Fix java invocation.