java - import from external lib jython -
I am trying to import a java class from jibs in external jib and it does not work. An example
package runs; Import import Imported; Class run () {public static zero main (string [] args) {pi = new Python interpolator (empty); Pi.execfile ('script.py'); }} // This is an external library package; Class imported () {// some goods; } Imported py script from // import import // this line throws an error module not found some content #do some stuff The most odd thing is that when it is compiled in eclipse But does not any help from the command line?
It seems that your classpath is probably set incorrectly on runtime, the simplest solution is usually the directory or To add jar file to 'import' sys.path.
(Also, the name of your package 'naming' is just asking for trouble.)
Comments
Post a Comment