문제

I use the JRuby complete JAR to interpret Ruby scripts in my Java program.

Looking for improving its performance, I found some properties: https://github.com/jruby/jruby/wiki/PerformanceTuning#compiler_rt_props

But those are properties for the command line JRuby. How can I set them within my Java code?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top