lib/jstdutil.rb in jstdutil-0.3.7 vs lib/jstdutil.rb in jstdutil-0.3.8
- old
+ new
@@ -30,13 +30,16 @@
#
# Run the jar through the java command
#
def self.run(args, jar)
begin
- res = `java -jar #{jar} #{args}`
+ res = `javad -jar #{jar} #{args}`
$exit_status = $?
return res
rescue Exception => err
+ puts "Unable to run java command. This probably means java is not available " +
+ "on your path. Original error was"
+ puts err.message
end
end
end
class FileNotFoundError < StandardError