On Sunday 10 April 2011, Ralf Wildenhues wrote: > * Stefano Lattarini wrote on Sun, Apr 10, 2011 at 09:50:14AM CEST: > > Thanks for the fast review, > > Stefano > > Hmm. Did you test this though? > Yes, but I only have javac 1.6.0 on my system, which works even with just the `-version' option:
$ javac -version; echo '$?' = $? javac 1.6.0_20 $? = 0 Adding a dummy non-existent file to the command line of the javac invocation unfortunately won't fix your problem: $ javac -version dummy.java; echo '$?' = $? javac 1.6.0_20 javac: file not found: dummy.java Usage: javac <options> <source files> use -help for a list of possible options $? = 1 $ javac -version /dev/null; echo '$?' = $? javac 1.6.0_20 javac: invalid flag: /dev/null Usage: javac <options> <source files> use -help for a list of possible options $? = 1 Maybe adding also the `-help' option to the java invocation works? E.g., $ javac -version -help Does this fix your problem? Sorry for the inconvenience, Stefano