I'm trying to get the compile error for exec("some javaPath/javac", $output, $exit). I tried print_r($output) and implode($exit) but I noticed the print_r gives an empty error if it fails to compile and implode only gives the error code.
Is there a way to get the compile error? For example, would it possible to get which line had a syntax error?
Thanks