Try
System.getProperty("user.dir")
It returns the current working directory.
More Related Contents:
- What is the cardinality ratio between class and interface? [closed]
- Servlet returns “HTTP Status 404 The requested resource (/servlet) is not available”
- How to handle events from keyboard and mouse in full screen exclusive mode in java?
- How to execute command with parameters?
- Calculate size of Object in Java [duplicate]
- Swing animation running extremely slow
- How to find the index of an element in an array in Java?
- How to display legend for Pie Chart in columns?
- Spring-Boot Jersey: allow Jersey to serve static content
- Place cursor at the end of text in EditText
- How to check if a String contains only ASCII?
- Generate UML Class Diagram from Java Project [closed]
- Java Read Large Text File With 70million line of text
- How are constructors called during serialization and deserialization?
- @OneToMany List vs Set difference
- How do I copy the contents of one ArrayList into another?
- How to capitalize the first letter of word in a string using Java?
- Arrays constants can only be used in initializers error
- JavaFX: How to change the focus traversal policy?
- Play WAV file backward
- MimeMessage.saveChanges is really slow
- How to hide a JFrame in system tray of taskbar
- Build an object from an existing one using lombok
- Redeploy alternatives to JRebel [closed]
- Unicode characters in app doesn’t show correctly [closed]
- ResultSet not closed when connection closed?
- How to write new line character to a file in Java
- round BigDecimal to nearest 5 cents
- Difference between java.io.PrintWriter and java.io.BufferedWriter?
- Reflection to access advanced telephony features