<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">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.<br>If you can do everything you need from the command line, then you can just use subprocess.Popen to run it. <br>Here is the article on how to run java files from the command line:<br><a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html">http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html</a><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Good Z <goodz158@yahoo.com><br>To: python-list@python.org<br>Sent: Wednesday, April 16, 2008 6:37:55
 AM<br>Subject: Calling Java Class from python<br><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>All, <br><br>We have developed a website in python and we need to integrate few features of third party website. They have provided us <span style="font-size: 10pt; font-family: Arial; color: black;" lang="EN-GB">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.<br><br>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.<br><br>Is Base64  library provided by python is compatible to  </span><span style="font-size: 10pt; font-family: Arial; color: black;" lang="EN-GB">Base64EncoderDecoder Java Class?<br><br>Regards,<br>Mike<br></span><span style="font-size: 10pt; font-family: Arial; color: black;"
 lang="EN-GB"><br><br></span></div></div><br>



      <hr size="1">Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20"> Try it now.</a></div><br></div></div><br>



      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>