I am trying to locate the path of the current running/debugged project programmatically in Java, I looked in Google and what I found was System.getProperty(\"user.id\"
System.getProperty(\"user.id\"
What about System.getProperty("user.dir")? It'll give you the working directory from where your program was launched.
System.getProperty("user.dir")
See System Properties from the Java Tutorial for an overview of Java's System Properties.