java - How can I get the workplace location path? -


i have tried getting project workspace absolute path, path through eclipse or tomcat.. need actual path project files located, such as:

"c:\users\annie\workspace-java\professionalsweb" ('professionalsweb' project's name) 

or simplify question- path "webcontent" folder inside project in java workplace located.

that why options not me:

system.getproperty("user.dir");  getclass().getclassloader().getresource(".").getpath(); 

which give me:

"c:\eclipse" "/c:/apache-tomcat-7.0.34/lib/" 

please me..

if need in servlet use

getservletcontext().getrealpath("/")


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -