Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 247 Bytes
require 'java'
os = java.lang.System.get_property 'os.name'
home = java.lang.System.get_property 'java.home'
mem = java.lang.Runtime.get_runtime.free_memory
puts "Running on #{os}"
puts "Java home is #{home}"
puts "#{mem} bytes available in JVM"
Something went wrong with that request. Please try again.