improve indenting/quoting in java.rb

use full paths to external utils. use list form of `system`.
use dashdash convention.
Merge pull request #3139 from rolandwalker/java_quoting

improve indenting/quoting in java.rb