import os.path,subprocess
from subprocess import Popen

# for i in range(0,100):
#   os.system()

# def compile_java(java_file):
#     subprocess.check_call(['javac', java_file])
#
# def execute_java(java_file):
#     java_class,ext = os.path.splitext(java_file)
#     cmd = ['java', java_class]
#     proc = subprocess.Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT)
#     print ('This was "' + stdout + '"')
#
# compile_java('AIClient.java')
# compile_java('SOSServer.java')
# compile_java('NewGUI.java')
# compile_java('InitGUI.java')
# compile_java('AIStarter.java')
# execute_java('AIStarter.java')
