From: annegrl <an...@ya...> - 2007-10-01 22:51:03
|
Just to update since this was continued via emails...I was able to resolve my problem with all the great help on here, especially David. Here are some more details about getting this to work. A bundleContext is passed in to a plugin's start method. BundleContext.getBundles() returns a Bundle[] to determine all the applicable bundles. To use the PySystemState's new class loader, you can do something like this: PySystemState state = new PySystemState(); ClassLoader pluginLoader = new PluginClassLoader(Thread.currentThread().getContextClassLoader()); state.setClassLoader(pluginLoader); PythonInterpreter interpreter = new PythonInterpreter(null, state); -- View this message in context: http://www.nabble.com/Cannot-import-name...but-jar-in-classpath-tf4546539.html#a12989632 Sent from the jython-dev mailing list archive at Nabble.com. |