package XXX; import java.io.File; import org.apache.muse.core.platform.osgi.util.BundleRootHelper; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import org.osgi.framework.Bundle; import org.eclipse.core.runtime.FileLocator; public class Activator implements BundleActivator { public void start(BundleContext context) throws Exception { String prop = System.getProperty("data.location"); String dir = System.getProperty("user.dir"); File root = null; if(prop == null){ Bundle bundles[] = context.getBundles(); for(int i=0;i