Use System.setProperty(String key, String value)
to set the properties you provide in command line. e.g.
System.setProperty("jruby.compat.version","RUBY1_8");
You have to set these properties during start up of your application.so,that there will not be any problem of properties missing