java.net.preferIPv4Stack

How to set this from within a program. I know how to add it to the command line with -D but how do I do it from with an application ?
[140 byte] By [KeyzerSuzea] at [2007-11-27 9:06:33]
# 1
As is typical with this, I have found the answer with the next google queryProperties props=System.getProperties();props.setProperty("java.net.preferIPv4Stack", "true");Alex
KeyzerSuzea at 2007-7-12 21:42:09 > top of Java-index,Core,Core APIs...
# 2
It's even simpler than that:System.setProperty("java.net.preferIPv4Stack", "true");
ejpa at 2007-7-12 21:42:09 > top of Java-index,Core,Core APIs...
# 3
How can I setup my own variables something likealex.variables.thisisitso that I could either use -D or system.setproperty
KeyzerSuzea at 2007-7-12 21:42:09 > top of Java-index,Core,Core APIs...