If you have a file (be any xml, css, json, java, txt etc) in your project folder and you want to know the Absolute or Relative path of it you can follow the below simple steps,
- Step 1: Expand your project and be on the file you want to know the path
- Step 2: Right Click on the file and click on Copy Path/References...
- Step 3: Select Absolute Path, File Name, Path from Content Root or Path from Source root options.
- Step 4: The text will get copied in your clipboard, paste it anywhere you want!

IDEA IntelliJ Copy Path Reference

Select File Path
More Posts related to Java,
- [Fix] java.time.zone.ZoneRulesException: Unknown time-zone ID
- Parse XML file in Java using DOM Parser
- Java equals method - Tutorial
- [Program] How to read three different values using Scanner in Java
- Java: The value of the local variable string is not used
- Display Output in Java Console as a Table
- How to detect Operating System using Java code
- Java 8 Streams map() with examples
- [Fix] java: incompatible types: incompatible parameter types in lambda expression error
- Add newline character Java code example (\r \n \r\n)
- List of Java Major Minor Version Numbers
- IntelliJ Keyboard Shortcut to remove unused imports [Java]
- Java - Check if array contains the value
- [Fix] Java Exception with Lambda - Cannot invoke because object is null
- How to declare and initialize Array in Java Programming
- [Solved] com.sun.xml.ws.transport.http.servlet.WSServletContextListener ClassNotFoundException
- XmlRpcException ConnectException connection refused error
- Create a Zip file using Java Code programmatically
- List of jar files for Jax-ws (SOAP) based Java Web Services
- How to fix Java HTTP java.net.UnknownHostException
- List of jars required for Struts2 project
- [fix] java: incompatible types: double cannot be converted to java.lang.Integer Generics
- Maven BUILD FAILURE: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin
- Get the current timestamp in Java
- java: unclosed string literal [Error]
More Posts:
- Install Apache Tomcat ver 8 on Mac OS X Yosemite 10.10 - Mac-OS-X
- How to install homebrew (brew) on M1 Mac - MacOS
- JavaScript: Count Words in a String - JavaScript
- How to create SharePoint List Item programmatically using C#.net - SharePoint
- 21 Useful Android Emulator Short-cut Keyboard Keys - Android
- How to place two div elements next to each other - CSS
- How to know file encoding in Microsoft Windows Notepad? - Microsoft
- Eclipse : This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in - Eclipse