javajvmjvm-arguments

Where can I define java compiler options so that they are seen by any java process running on the machine?


Following http://lucene.apache.org/java/docs/index.html#28+July+2011+-+WARNING%3A+Index+corruption+and+crashes+in+Apache+Lucene+Core+%2F+Apache+Solr+with+Java+7 I wish to set the -XX:-UseLoopPredicate JVM option globally, so that it is seen by all the java processes running on my machine.

How do I do it?

Thanks.


Solution

  • You can try using the _JAVA_OPTIONS environment variable.