jar - jython ImportError: No module named -
jar - jython ImportError: No module named -
i'm new jython , failing utterly @ importing java class within jar.
what trying write wrapper shell script calls jython script. can not allowed edit jython @ all, adding jars sys.path within jython script not possible.
error y", line 17, in com.polarland.testmodule.cache import cacheinterface importerror: no module named polarland
i've added jar contains above bundle name of testmodule.jar path, classpath , jythonpath no avail. i'm worried due name of jar not sure.
any advice appreciated!!
in shell script use:
export classpath=testmodule.jar:$classpath jython ... in case setting classpath enough. remember utilize total path name , remember utilize .jar name (testmodule.jar , testmodul.jar different). maybe utilize wrong file rights. seek file command check if can read file. illustration 1 of jars use:
mn$ file junit-4.1.jar junit-4.1.jar: zip archive data, @ to the lowest degree v2.0 extract jar jython importerror
Comments
Post a Comment