From d488efea5a91f1d1cb1cebadf7936e6c7076e9e2 Mon Sep 17 00:00:00 2001 From: pk910 Date: Sun, 27 Nov 2011 16:23:33 +0100 Subject: [PATCH] don't add .class to the java command - and define classpath --- Bots/JavaGod.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1