0

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?

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.