From: Mark E. <m.e...@AD...> - 2002-03-28 15:42:45
|
We are in the process of writing a Java application to control a piece of test equipment. Our architecture allows us to extend this application via a scripting language. Jython seems the perfect choice for this. However, we will not be able to require all our customers to install Jython on their systems. We were planning to distribute the jython.jar file (plus any other jar files necessary). This has apparently caused a problem. When testing on a platform without installing Jython or CPython if we have a script that imports string, re or most any other module, we get an import error. This does not happen on my machine (which has both ActivePython and Jython installed). I tried to fix this by running jythonc on all the standard lib files in the jython\lib directory and creating a jar file out of the resulting class files and putting this jar file in the classpath of the command running our app. We still get import errors in importing these modules. So, how do we provide the standard library modules to an embedded interpreter running on a machine where Jython has not been installed? A similar question would be how do we provide these modules to an applet running remotely on a web browser? Mark |