Java/트러블슈팅

현재 실행 중인 클래스의 물리적 위치 알아내기

ParkCheolu 2018. 4. 30. 22:08

MyClass.class.getProtectionDomain().getCodeSource().getLocation().getPath();


현재 JVM에 로드된 클래스의 물리적 파일 위치를 반환.