Try;
String path = new File(".").getCanonicalPath();
More Related Contents:
- How do I get the file name from a String containing the Absolute file path?
- Getting filesystem path of class being executed [duplicate]
- Get filepath and filename of selected gallery image in Android
- Java JTree directory structure from file paths
- How to escape the backslashes and the automatically generated escape character in file path in java
- Determining location of JVM executable during runtime
- Java: Get URI from FilePath
- What’s wrong with using == to compare floats in Java?
- How are Spring Data repositories actually implemented?
- How to convert a JSON string to a Map with Jackson JSON
- Ignore fields from Java object dynamically while sending as JSON from Spring MVC
- Is it bad to explicitly compare against boolean constants e.g. if (b == false) in Java?
- Java 8: Difference between method reference Bound Receiver and UnBound Receiver
- How to create a Topic in Kafka through Java
- Java – Best way to grab ALL Strings between two Strings? (regex?)
- Exception handling : throw, throws and Throwable
- Including Images with an executable jar
- Maven: How to change path to target directory from command line?
- Calling getters on an object vs. storing it as a local variable (memory footprint, performance)
- How to determine if a String has non-alphanumeric characters?
- Error: Generic Array Creation [duplicate]
- Does Java guarantee that Object.getClass() == Object.getClass()?
- SDK Manager.exe doesn’t work
- kubernetes pod memory – java gc logs
- Sort an ArrayList based on an object field [duplicate]
- Sort a single String in Java
- java.lang.ClassNotFoundException: org.postgresql.Driver, Android
- How to set String Array in Java Annotation
- hashCode uniqueness
- Autowired Repository is Null in Custom Constraint Validator