if you want to get path where calss is located ..here is code

URL url =getClass().getProtectionDomain().getCodeSource().getLocation();

hop its helpfull

write here if you feel its helpful

cherrrrrrrrrrzzzzzzzzzzzzz