I want to access my current working directory using java.
My code :
String current = new java.io.File( \".\" ).getCanonicalPath(); System.ou
Using Windows user.dir returns the directory as expected, but NOT when you start your application with elevated rights (run as admin), in that case you get C:\WINDOWS\system32