简体   繁体   中英

Getting the actual physical path of project in eclipse

I am using the latest release of Eclispe (ie Eclipse Luna).

I have a web project set up and working. Now I want the real physical path of my web project. I have used the real path of my servlet context and it gives me the deployed path under .metadata folder of eclipse.

Is there any way of getting the physical path of my project under my workspace?

You cannot reliably do so.

If you need information from your project, put it in resource files on the classpath.

I actually have the same problem. But I have solved with eclipse. Please try this.

Step 1: Select your project or file

Step 2: Now right click on it

Step 3: Go to properties

Step 4: Now go to resources

Step 5: See two path are there.

Path: relative path to your project

Location : Actual path from drive(Full path).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM