This problem is only on the wintel platform. I ran the following program using
JDK1.1.4. I also tried JDK1.1.3 and it still did not work. It only works
correctly using JDK1.1.1. When "user.home" is passed at the command line
on Wintel, the output is wrong.
On Solaris:
$ java prop user.home
/home/kammy <-- correct output
$ java -Duser.home=/set/sqe/java prop user.home
/set/sqe/java <-- correct output
On wintel
c:/ java prop user.home
c: <-- correct output
c:/ java -Duser.home=e:/test prop user.home
c: <--- WRONG!!!
Here is the program to reproduce the error:
class prop {
public static void main (String args[]) {
System.out.println(System.getProperty(args[0]));
}
}
JDK1.1.4. I also tried JDK1.1.3 and it still did not work. It only works
correctly using JDK1.1.1. When "user.home" is passed at the command line
on Wintel, the output is wrong.
On Solaris:
$ java prop user.home
/home/kammy <-- correct output
$ java -Duser.home=/set/sqe/java prop user.home
/set/sqe/java <-- correct output
On wintel
c:/ java prop user.home
c: <-- correct output
c:/ java -Duser.home=e:/test prop user.home
c: <--- WRONG!!!
Here is the program to reproduce the error:
class prop {
public static void main (String args[]) {
System.out.println(System.getProperty(args[0]));
}
}