From: A Bewes <ABewes@co...> - 2003-04-10 14:11:21
I've embedded a Jython interpreter in my Java app, I only deploy my app with
a jython.jar file and no jython installation. The scripts seem to be working
fine with importing/using of my classes.
I'm having difficulty though in accessing other modules and classes from the
scripts I write:
1. thirdparty.class (from 'elsewhere')
2. string.py (from Jython\Lib)
I seem to be able to access the 1st class if I add it to the classpath for
my app. , but can't I do this dynamically from my script using the
sys.add_classdir("c:\classes") #where thirdparty.class lives
Similarly, for the 2nd case string.py, if I know its location can I not add
it to the list of paths the Jython traverses?
Hope you can help,
Get latest updates about Open Source Projects, Conferences and News.