I'm using Jython from within Eclipse, which has required some care to
get it to handle the Eclipse classloaders properly. I'm finding my
solution that worked for 2.5.1 does not work now I try to upgrade to
Specifically, I start a Jython script, provide a Jython callback to my
Eclipse application, and then start it via equinox. At the start of my
callback, I do this:
sys.classLoader = Thread.currentThread().getContextClassLoader()
I then do this:
from org.eclipse.swt.widgets import Button
which is wrong, and the same thing that happens if I don't set
sys.classLoader at all.
This worked fine in Jython 2.5.1, where it instead prints
and goes on to work correctly.
Any ideas what might have caused this change, or how I might debug/fix it?