This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "import with Jython" Watch "import with Jython" New topic

import with Jython

Kevin Fonner

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...
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 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:
subject: import with Jython
jQuery in Action, 3rd edition