If you need to explicitly call a method and get the results, AFAIK, the only
way to do it is to use Jython, a version of Python written in java.
If you can do everything you need from the command line, then you can just use
subprocess.Popen to run it.
Here is the article on how to run java files from the command line:
http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html
----- Original Message ----
From: Good Z <[EMAIL PROTECTED]>
To: python-list@python.org
Sent: Wednesday, April 16, 2008 6:37:55 AM
Subject: Calling Java Class from python
All,
We have developed a website in python and we need to integrate few features of
third party website. They have provided us Base64EncoderDecoder Java Class and
would like us to use it to encode the data before sending it to their site and
decode it when received anything from their site.
I have no idea/knowledge of Java. Can you please guide me how can i call Java
class from Python scripts? Or what is the best way to handle this condition.
Is Base64 library provided by python is compatible to Base64EncoderDecoder
Java Class?
Regards,
Mike
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it now.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--
http://mail.python.org/mailman/listinfo/python-list