Importing a class, please help...
Xavier Morel
xavier.morel at masklinn.net
Sun Feb 5 11:16:38 EST 2006
anon wrote:
> Would somebody please drop me a hint, please?
>
Yeah, the definition of "JAR" is Java ARchive, why the hell would a
Python script be able to read a JAR in the first place (truth is it is,
a JAR file is nothing but a renamed ZIP, therefore the zipfile module
allows you to read it's content) and -- more importantly -- import Java
classes.
Notice the difference between *Python* script and *Java* class? That's
because they're two different languages.
If you want to use Java classes and modules in a Pythonic context, you
want Jython (http://www.jython.org/) not Python (http://www.python.org/)
More information about the Python-list
mailing list