wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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 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.
subject: import with Jython
Similar Threads
Jython installation with Tomcat 4.1.12
Help - How to I tell java where my jython.py script is located in the Directory
Any Resources for Jython ?
Jython and Unit testing
I somehow hosed my java environment