Is it possible to set java properties from within ruby? like setting the XULRunnerPath in this example jruby --server --fast -J-Dorg.eclipse.swt.browser.XULRunnerPath="e:\installs\xulrunner" but within a .rb file? Thanks. -r
on 2010-02-23 01:38
on 2010-02-23 07:34
It is too late to set those from within a .rb file, since Java VM is already running and its initial settings are already set. --Vladimir On Tue, Feb 23, 2010 at 1:38 AM, Roger Pack <lists@ruby-forum.com> wrote: > -r > -- > Posted via http://www.ruby-forum.com/. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 2010-02-23 08:40
Perhaps I'm missing something, but can't you just do something like
this?
java.lang.System.setProperty('org.eclipse.swt.browser.XULRunnerPath',
'e:\installs\xulrunner')
As long as you start whatever is going to end up looking at that
property
after calling setProperty, everything should work, in theory. I use
this
same set-up for Solr...
2010/2/23 Vladimir Sizikov <vsizikov@gmail.com>
on 2010-02-23 08:58
Ah, indeed! I misread the question and thought that Roger wanted to set not only the property, but also --server and --fast modes... For properties, that's not problem (assuming that you set them early enough). --Vladimir On Tue, Feb 23, 2010 at 8:40 AM, Don Werve <donw@madwombat.com> wrote: >> >> > >> > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 2010-03-02 20:27
Yes, setting them early enough is the key; most libraries will only try to read them once and never look at them again. On Tue, Feb 23, 2010 at 1:58 AM, Vladimir Sizikov <vsizikov@gmail.com> wrote: >> Â Â Â Â Â 'e:\installs\xulrunner') >>> On Tue, Feb 23, 2010 at 1:38 AM, Roger Pack <lists@ruby-forum.com> wrote: >>> > -r >>> > To unsubscribe from this list, please visit: > > Â Â http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.