i have installed jython, virtualenv named "jython-env" , have installed "bottle" doing web application development. have use jar files in application consumption python code. know have set classpath should include these jar files. tried setting classpath using
export classpath=/home/myname/jclasses/foo.jar but when try import class, says module not found. new @ java , doing first time.
can't configuration done such can put jar files in sitepackages directory of virtualenv , use there?
jython -dpython.path=/path/to/myjar.jar here's idea: use .pth file.
create file - /path/to/jythonenv/lib/site-packages/myjars.pth:
path/to/jar1.jar path/to/jar2.jar would trick.
Comments
Post a Comment