updating java invocation