|
From: Kent J. <ke...@td...> - 2007-01-24 13:49:29
|
wer...@gm... wrote: > Dear all, > > in our company we have special java packages for our inhouse applications. > The following is an extract from an inhouse cookbook to use some of > these packages in Java Programs: > > import org.ara.araque.preparation.*; > > I wanted to use these classes in Jython also, therefore I entered various > import statement > in the jython shell. These are the results >>>> import org.ara.araque > Traceback (innermost last): > File "<console>", line 1, in ? > ImportError: No module named ara > > Probably I have to pass some infomation to Jython where to look for these > packages, but how?? > There seem to be hundreds of paths, classpaths ... > Remark: I am a Jython novice ;-) You have to include the jars containing your inhouse packages on the Java classpath when you invoke Jython. > > Maybe it is important that I use Jedit with the Jython Plugin as IDE; the > Plugin is my interactive Jython shell. > Unfortunately, this makes the situation even more complicated for me. You will have to figure out how to modify the classpath used by the Jedit plugin. Alternately you might want to try running your code from the command line with a batch file to set the correct parameters. Kent |