Getting absolute path of a file in a webapp without using servlet/JSP

Getting absolute path of a file in a webapp without using servlet/JSP
[76 byte] By [Deepu_pa] at [2007-11-26 17:15:56]
# 1
Maybe with the "dir" command in your shell?An explanation of the background of this question would be helpful.
DrClapa at 2007-7-8 23:43:58 > top of Java-index,Java Essentials,Java Programming...
# 2

I use the following to find the directory src in the WEB-INF/classes directoryfinal URL root = getClass().getResource("/src");

final File rootFile = new File(root.getFile());

sabre150a at 2007-7-8 23:43:58 > top of Java-index,Java Essentials,Java Programming...