In a regular Java application, you can print the contents of the class path using
String ss = System.getProperty("java.class.path"); System.out.println(ss);
But how do I print the path to the OSGI classes created using the eclipse PDE wizard? In the activator, you can get the current package, for example:
public void start (BundleContext context) throws Exception {super.start (context); plugin = this;
Bundle b = context.getBundle(); // java doc: This bundle class loader is not used to search for entries. b.findEntries(path, filePattern, recurse)
But javadoc says findEntries DOES NOT use the class loader. Is there an easy way to see / print what is in the current package class path?
classpath eclipse osgi
u123
source share