我有一个 org.osgi.framework.Bundle 实例,我试过了
bundle.getLocation();
bundle.getClass().getProtectionDomain().getCodeSource().getLocation();
它们都不能返回特定依赖 jar 文件的绝对路径。所以我的问题是如何通过这个捆绑实例获取路径?
我有一个 org.osgi.framework.Bundle 实例,我试过了
bundle.getLocation();
bundle.getClass().getProtectionDomain().getCodeSource().getLocation();
它们都不能返回特定依赖 jar 文件的绝对路径。所以我的问题是如何通过这个捆绑实例获取路径?