aspose file tools*
The moose likes Jython/Python and the fly likes import with Jython Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "import with Jython" Watch "import with Jython" New topic
Author

import with Jython

Kevin Fonner
Greenhorn

Joined: Sep 20, 2001
Posts: 21
I have a java class file that is being called by another java program. I want this class file to be able to run jython scripts. The problem I am running into is that my class file is able to import certain libraries from this other program that jython can't seem to see. When I initialize the PythonInterpreter I tried passing the System.getProperties into the preProperties on Initialization to see if that would set the class path's and everything the same as my class file which can see everything.
Any ideas what I'm over looking...
Thanks,
Kevin
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Hi Kevin, it's good to see another Jython post. Sorry can't answer that one yet. Have you also tried the discussion group on www.jython.org? If its urgent, then I just feel that you may get a quicker response there.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: import with Jython