Tim Ellison wrote:
Geir Magnusson Jr. wrote:
Tim Ellison wrote:
Geir Magnusson Jr. wrote:
Isn't java.home set on vm start and immutable?
No.
"No" what?
?? It is untrue that java.home is set on vm start and immutable.
e.g.
public static void main(String[] args) {
System.out.println(System.getProperty("java.home"));
System.setProperty("java.home", "anything I want it to be");
System.out.println(System.getProperty("java.home"));
}
produces:
C:\java\IBM JDK 5.0\SR3\jre
anything I want it to be
Thanks - why would anyone want this to be mutable?
geir