I need to access the java class which is running jython script from that script?
Any help?
update:
Something like this:
//JAVA CLASS
class Test{
public String text;
public Test
{
PythonInterpreter pi = new PythonInterpreter(null);
pi.execfile("test.py");
}
}
So int test.py I need to do something to change the value of text in Test class
#test.py
doSomething()
Text.test = "new value"
Hope it is more clear
To pass a java class instance to the embeded jython you need to do:
If you want to call a function (that takes the instance as an argument) from a external script: