[help] file paths

how can i get the path of a file (in a different directory) without using the absolute path like : "D:/......"I know there is a System.getProperty("user.dir") but that doesn't work in forte because it uses the dir "forte/ce/bin" instead?help please
[277 byte] By [705817] at [2008-1-12]
# 1
Hi If you already have accessed the file , you can get the absolute path from getabsolutepath method of the file object.Is this what you were asking.
Srikanth.Ramakrishna at 2007-7-1 > top of java,Archived Forums,Sun ONE Web Services Platform Developer Edition...
# 2
is this ok? static final String FileProperty = "/MMS/resource/FileTypes.properties";java.net.URL url = getClass().getResource(FileProperty);String path = url.getPath();
705817 at 2007-7-1 > top of java,Archived Forums,Sun ONE Web Services Platform Developer Edition...