I have a Java project with a structure like this:
- root
- swt.package with Main Class inside
- data.package
- other.package
What I need is the to get root path in my Main class.
On IntelliJ this works perfectly with System.getProperty("user.dir")
that gives me the exact path to my root
folder.
But on eclipse this returns root/swt.package
.
How can I get the same path to the root folder independend of my IDE?