I have 2 Questions regarding
Java System properties.
1 What is the exact different between getenv() and getProperties().On JDK 1.5 both work,but output seems to be different.
2. HOw can we get environment variables through getProperty()
I did java -Dusername=$USERNAME
but it says output $USERNAME
user.dir ,user.name....all work but these are not environmental varialbes but system properties taking values from environment variables.
thankx