I used Netbeans platform to build my application uasing java languge.I need to invoke some python functions into java class using jython was the only way. unfortunatly when I tried to run the program an error showed indicate that the application did not find the following modules
Exception in thread "main" Traceback (most recent call last):
File "script.py", line 13, in <module>
import re
ImportError: No module named re
File "script.py", line 14, in <module>
from string import *
ImportError: No module named string
Java Result: 1
this is the code in script.py that I want to invoke one of it's method into my java class
#!/pkg/ldc/bin/python2.1
import xml.parsers.expat
import re
from string import *
import sys
How to add these python modules into my application ?