From: Jim A. <Ji...@do...> - 2001-10-22 03:45:12
|
javaos.py is needed for the os module and should be in the Lib directory under your jython.jar. I don't know why it's not being found in your situation, try adding to your classpath? > -----Original Message----- > From: Ihab A.B. Awad [mailto:ih...@ah...] > Sent: Sunday, October 21, 2001 6:32 PM > To: jyt...@li... > Subject: Re: [Jython-users] ImportError: no module named java > > > > Yet more re this ... sorry for the proliferation of msgs. > > (a) I realized that "no module named java" was because my > programs were > not specifying a "python.cachedir" property correctly. > Fixing this has > fixed the original problem. > > (b) Now, running inside my JSP application (which is where I > _really_ want > to use Jython), when I do -- > > import os > dir(os) > > I get the error -- > > ImportError: no module named javaos > > Eek. So, now, does _that_ look familiar to anyone? > > Thanks as always to all and peace, > > Ihab > > -- > Ihab A.B. Awad <ih...@ah...> > Center for Computational Genomics and Bioinformatics, > University of Minnesota. http://www.cbc.umn.edu/~ihab/ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |