Implementing "java_command" ... part 1.