java getProtectionDomain问题,有谁知道在什么情况下会找不到路径

这是代码
Paths.get(ClassesPathWatch.class.getProtectionDomain().getCodeSource().getLocation().getPath().replaceAll("^/", "").replaceAll("%20", " "));
在我本机上会获得 c:xxxx/xxxx/xxxx.class
在测试服务器上获得是 c:xxx/xxx/
有谁知道是由于什么原因造成的吗

心态炸裂,感觉没问题啊

+1 ,老哥定位到什么原因了吗?我的跟你相反,本地是c:xxx/xxx/  服务器是c:xxxx/xxxx/xxxx.class