Hello all,

I have two .py files:

############################

testmodule.py

class testfather:
        def __init__(self, param):
                self.param = param
                print "module __init__"
       
        def method(self):
                print self.param
                print "method"

############################

test.py

import testmodule

parameter = "string"
tm = testmodule.testfather(parameter)
tm.method()

############################

I've compiled these files with jythonc, and I want to run it in a console with "java -cp d:\jython-2.1:. test" and it returns the following exception:

Exception in thread "main" java.lang.NullPointerException
        at org.python.core.PyJavaClass.lookup(PyJavaClass.java:43)
        at org.python.core.PyObject.<init>(PyObject.java:46)
        at org.python.core.PySingleton.<init>(PySingleton.java:8)
        at org.python.core.PyNone.<init>(PyNone.java:10)
        at org.python.core.PySystemState.initStaticFields(PySystemState.java:396)
        at org.python.core.PySystemState.initialize(PySystemState.java:375)
        at org.python.core.Py.initProperties(Py.java:696)
        at org.python.core.Py.runMain(Py.java:817)
        at test.main(test.java:55)

What does this means?

Thanks in advance

Tiago Jorge