FileLocator.getBundleFile(Platform.getBundle(“bundle_id”)).getAbsolutePath();
Platform.getBundle方法調用並不會Activate當前Bundle, 其只是獲得當前系統內相應的被解析(Resolved)的Bundle
(2) 獲得OSGi Bundle的 State Location.
Activator.getDefault().getStateLocation()
需要注意的是,該方法調用要求當前的Bundle必須是Active狀態。