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,
- How to Get List of All Country Codes in Java Using Locale Class
- Unsupported major.minor version 52.0 in java
- Java - How to set custom thread name?
- Get the current timestamp in Java
- Java Spring Boot 3 Web Hello World with Gradle in IntelliJ
- [fix] NullPointerException Cannot Invoke findById because Repository is null - Java Spring
- java: unclosed string literal [Error]
- Convert Java Byte Array to String with code examples
- Error: Can not find the tag library descriptor for
- Java 8 - Convert List to Map Examples
- Java - Calculate time taken for the code to execute in milliseconds or nanoseconds
- Fix java.net.ProtocolException: Invalid HTTP method
- Java: Convert Stream to List
- Java equals method - Tutorial
- List of Java JDBC Database Driver Jars, Classes and URLs Details
- Read YAML file Java Jackson Library
- How to display Java Date Time timezone GMT/UTC offset using SimpleDateFormat
- List of Java Keywords
- Enable JSON Pretty Print in Java Jackson
- How to Word-Warp Console logs in IntelliJ
- Convert Map to List in Java 8 using Stream API
- Create a Directory using Java Code
- Ways to Convert Integer or int to Long in Java
- [Program] How to read three different values using Scanner in Java
- Java JDBC Example with Oracle Database Driver Connection
More Posts:
- How to copy Chrome alert popup text to clipboard - Chrome
- [Error] zsh: command not found: mvn - HowTos
- How to Disable Mac Terminal Bell Sound - MacOS
- Difference between using Scanner Class and String args for user input in Java - Java
- [Solution] The connection to the remote PC was lost, preparing to reconnect - Windows RDP - Windows
- How to Detect Phone Shakes Android Programming - Android
- Where are screenshots saved on Windows 11 using Snipping Tool? - Windows-11
- Java equals method - Tutorial - Java