def execute_java(classpath, main, jvm_options=None, args=None, executor=None, workunit_factory=None, workunit_name=None, workunit_labels=None, cwd=None, workunit_log_config=None, distribution=None, create_synthetic_jar=True, synthetic_jar_dir=None):
 runner = _get_runner(classpath, main, jvm_options, args, executor, cwd, distribution, create_synthetic_jar, synthetic_jar_dir)
 workunit_name = (workunit_name or main)
 return execute_runner(runner, workunit_factory=workunit_factory, workunit_name=workunit_name, workunit_labels=workunit_labels, workunit_log_config=workunit_log_config)

def execute_java ( classpath , main , jvm_options = None , args = None , executor = None , workunit_factory = None , workunit_name = None , workunit_labels = None , cwd = None , workunit_log_config = None , distribution = None , create_synthetic_jar = True , synthetic_jar_dir = None ) : runner = _get_runner ( classpath , main , jvm_options , args , executor , cwd , distribution , create_synthetic_jar , synthetic_jar_dir ) workunit_name = ( workunit_name or main ) return execute_runner ( runner , workunit_factory = workunit_factory , workunit_name = workunit_name , workunit_labels = workunit_labels , workunit_log_config = workunit_log_config )
executes the java program defined by the classpath and main .