Hello!
 
First of all, thank you for the best scripting language under Java!! Currently, I am working on a project using Jython to build an application using the SWT and JFace libararies of Eclipse.
It works fine with SWT, but I really have problems using the JFace lib. I cannot derive from JFace classes and I also get problems compiling the Jython code to Java (jythonc).
 
For example, this is the error message when I try to derive from class TitleAreaDialog (but a simple instantiation of TitleAreaDialog works):
 
  File "QXWizard.py", line 20, in ?
java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:140)
        at org.python.core.SyspathJavaLoader.loadClass(SyspathJavaLoader.java)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at org.python.core.Py.findClassEx(Py.java)
        at org.python.core.SysPackageManager.findClass(SysPackageManager.java)
        at org.python.core.PyJavaClass.initLazy(PyJavaClass.java)
        at org.python.core.PyJavaClass.initialize(PyJavaClass.java)
        at org.python.core.PyJavaClass.getProxyClass(PyJavaClass.java)
        at org.python.core.PyClass.init(PyClass.java)
        at org.python.core.PyClass.<init>(PyClass.java)
        at org.python.core.Py.makeClass(Py.java)
        at org.python.core.Py.makeClass(Py.java)
        at QXWizard$py.f$0(QXWizard.py:20)
        at QXWizard$py.call_function(QXWizard.py)
        at org.python.core.PyTableCode.call(PyTableCode.java)
        at org.python.core.PyCode.call(PyCode.java)
        at org.python.core.imp.createFromCode(imp.java)
        at org.python.core.imp.createFromSource(imp.java)
        at org.python.core.imp.loadFromPath(imp.java)
        at org.python.core.imp.loadFromPath(imp.java)
        at org.python.core.imp.load(imp.java)
        at org.python.core.imp.import_next(imp.java)
        at org.python.core.imp.import_name(imp.java)
        at org.python.core.imp.importName(imp.java)
        at org.python.core.ImportFunction.load(__builtin__.java)
 
Do you know anybody with similar problems / know any workarounds ?
 
Any help is greatly appreciated!
 
Thomas