'; $last_line = system(HEC . ' -stdlib ' . HEPTLIB . ' -target java -i main.ept 2> main.out',$res); echo ''; flush(); if ($res == 0) { // Make interface Java class mkdir('main_interface'); echo ''; echo '
'; // Java compilation system('javac ' . '-classpath /home_nas/gdelaval/public_html/bzr/heptagon_applet.jar:.' . ' main_interface/MainInterface.java 2>&1'); //system('ls -l *'); echo ''; // Make jar file $tempfile=tempnam('/home_nas/gdelaval/public_html/bzr/jar','main-'); system('jar cf ' . $tempfile . '.jar main/*.class main_interface/*.class 2>&1'); // $_SESSION['jarfile'] = $tempfile; // Generate applet HTML code ?>
Compilation failed !
'; } system("rm -fr " . $workdir. "/*"); // Get the compilation result // Working directory suppression rmdir($workdir); } ?>