From: Ype K. <yk...@xs...> - 2002-03-16 22:17:58
|
Michel, >Hi! > >I have a handful of .jar files that contain classes I'm interested in >using from Jython. They reside in a directory called 'C:\foo'. The >only .jar file I'm interested in is called ldap.jar, but there are >also a half-dozen .jar files that ldap.jar depends on. > >So my question is, how can I import the classes from ldap.jar? I >tried simply running jython from the folder that contained all the >..jar files but 'import ldap' didn't fly. I tried adding the .jar >files to the -classpath and the same import statement failed again. >I'm sure this is a simple thing and I'm just not waving the dead >chicken in quite the right way. You don't need to import the jar itself. For example with classes.zip on the class path you can import java # just another package in classes.zip Would that be simple enough? Ype -- |