How can I get windows environment variables? Everything I look at says that I should do strMyVar = System.getProperty("envVar" but it does not work. I am using JBuilder4 foundation.
You DO use system.getProperty, but you pass the actual name of the variable as a parameter. System.getProperty("Path", for instance, gets the contents of the Path variable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.