how to get *.class file path....

how could find the executable file path at execution time.. if there is one *.class file, then i will paste it to another location . next i will execute that .class file. how to find that path from execution program ....
[234 byte] By [thaniyarasua] at [2007-10-2 22:52:23]
# 1
Try the followingURL path = getClass().getProtectionDomain().getCodeSource().getLocation();
maf69a at 2007-7-14 6:06:36 > top of Java-index,Java Essentials,Java Programming...