def create_java_start_cmd(app_name, port, load_balancer_host, max_heap):
 db_location = DATASTORE_PATH
 cmd = [(('cd ' + constants.JAVA_APPSERVER) + ' &&'), './appengine-java-sdk-repacked/bin/dev_appserver.sh', ('--port=' + str(port)), '--jvm_flag=-Dsocket.permit_connect=true', '--jvm_flag=-Xmx{}m'.format(max_heap), '--disable_update_check', ('--address=' + appscale_info.get_private_ip()), ('--datastore_path=' + db_location), ('--login_server=' + load_balancer_host), '--appscale_version=1', ('--APP_NAME=' + app_name), ('--NGINX_ADDRESS=' + load_balancer_host), '--NGINX_PORT=anything', os.path.dirname(locate_dir((('/var/apps/' + app_name) + '/app/'), 'WEB-INF'))]
 return ' '.join(cmd)

def create_java_start_cmd ( app_name , port , load_balancer_host , max_heap ) : db_location = DATASTORE_PATH cmd = [ ( ( 'cd ' + constants . JAVA_APPSERVER ) + ' &&' ) , './appengine-java-sdk-repacked/bin/dev_appserver.sh' , ( '--port=' + str ( port ) ) , '--jvm_flag=-Dsocket.permit_connect=true' , '--jvm_flag=-Xmx{}m' . format ( max_heap ) , '--disable_update_check' , ( '--address=' + appscale_info . get_private_ip ( ) ) , ( '--datastore_path=' + db_location ) , ( '--login_server=' + load_balancer_host ) , '--appscale_version=1' , ( '--APP_NAME=' + app_name ) , ( '--NGINX_ADDRESS=' + load_balancer_host ) , '--NGINX_PORT=anything' , os . path . dirname ( locate_dir ( ( ( '/var/apps/' + app_name ) + '/app/' ) , 'WEB-INF' ) ) ] return ' ' . join ( cmd )
creates the start command to run the java application server .