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,
- Java equals method - Tutorial
- Unbound classpath container: JRE System Library [JavaSE-1.7]
- Spring Boot: @RequestBody not applicable to method
- Java 8: Steam map with Code Examples
- Java Program: Random Number Generator
- Java java.time.Clock class code examples [Java Date Time API]
- Fix: type argument is not within bounds of type-variable T
- [Fix] java.net.MalformedURLException: unknown protocol
- Java 7 addSuppression() and getSuppression() Exception Handling
- Convert Java Array to ArrayList Code Example
- How to Word-Warp Console logs in IntelliJ
- Ways Compare Dates in Java Programming with Examples
- Remove Trailing zeros BigDecimal Java
- CRUD operations in Spring Boot + JDBC
- [Java Threads] Should we extend Thread Class or implement Runnable interface
- Json Serialization and Deserialization using Java Jackson
- Create simple struts2 project using maven commands
- How to install Java OpenJDK 11 on Alpine Linux
- Unsupported major.minor version 52.0 in java
- Error: Can not find the tag library descriptor for
- Java: Convert String to Binary
- How to run Java Unit Test cases with Apache Maven?
- Java: Testing Private Methods in JUnit using reflection API Example
- Java JDBC Connection with MySQL Driver in VS Code + Troubleshooting
- Java Join Strings with Comma Separator
More Posts:
- How to make div or text in html unselectable using CSS - CSS
- Skip Test Maven while creating package command - Java
- Fix Mac: A software update is required to connect to iPhone - MacOS
- How to activate and create SharePoint Spaces feature for mixed reality experience - 2D/3D images and web parts - SharePoint
- How to extract Java Jar/War/Ear files in Linux - Java
- Execute .bin and .run file Ubuntu Linux - Linux
- [fix] Docker: Alpine Linux - /bin/sh: bash: not found - Docker
- Bash Command to Do Nothing with Example - Bash