From: pk910 Date: Sun, 27 Nov 2011 15:23:33 +0000 (+0100) Subject: don't add .class to the java command - and define classpath X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=d488efea5a91f1d1cb1cebadf7936e6c7076e9e2 don't add .class to the java command - and define classpath --- diff --git a/Bots/JavaGod.class.php b/Bots/JavaGod.class.php index 1c0023e..7d72cce 100644 --- a/Bots/JavaGod.class.php +++ b/Bots/JavaGod.class.php @@ -136,7 +136,7 @@ class {$_NAME} extends Bot { break; } $descriptor = array(0 => array("pipe", "r"),1 => array("pipe", "w"),2 => array("pipe", "w")); - $entry['proc'] = proc_open('java tmp/Debug_'.$entry['id'].'.class', $descriptor, $entry['pipes']); + $entry['proc'] = proc_open('java -classpath tmp Debug_'.$entry['id'], $descriptor, $entry['pipes']); if(!is_resource($entry['proc'])) { $this->uplink->notice($this->bot, $user, "error while loading c!"); return;