Where is the latest step by step guide to use Jython to compilePython into Java?

David Shi davidgshi at yahoo.co.uk
Mon Jun 4 17:47:57 CEST 2012


Hello, Mohan,

Did you test it?  I am using Windows.  Where are the exact steps for compiling in DOS?

Once .class or jar files created, how to use these files?

Could you enlighten me with tested/proven step by step instructions?

Regards.

David



________________________________
 From: "Narayanaswamy, Mohan" <Mohan.Narayanaswamy-2 at sc.com>
To: David Shi <davidgshi at yahoo.co.uk> 
Cc: python-list at python.org 
Sent: Monday, 4 June 2012, 16:38
Subject: RE: Where is the latest step by step guide to use Jython to compilePython into Java?
 

David,
 
Thanks for the link, here that compilation steps won’t produce  java code, but it could create .class file (or jar).
 
Regards
Mohan
 
From:David Shi [mailto:davidgshi at yahoo.co.uk] 
Sent: Monday, June 04, 2012 11:35 PM
To: Narayanaswamy, Mohan
Cc: python-list at python.org
Subject: Re: Where is the latest step by step guide to use Jython to compilePython into Java?
 
Mohan,
 
Please see the following link as an example.
http://www.ssec.wisc.edu/~tomw/visadtutor/compile.html
 
I just can not make any success with some of these instructions.
Compiling your Python code with jythonc
I do not know whether I downloaded a wrong version of Jythonc?   Or, got mismatched software or instructions.
 
Please provide assistance, by providing the tested software and instructions.
 
Regards.
 
David
 

________________________________

From:"Narayanaswamy, Mohan" <Mohan.Narayanaswamy-2 at sc.com>
To: David Shi <davidgshi at yahoo.co.uk> 
Cc: python-list at python.org 
Sent: Monday, 4 June 2012, 15:56
Subject: RE: Where is the latest step by step guide to use Jython to compilePython into Java?
 
David,
 
As per my knowledge, You can’t find steps to convert python into java anywhere.
 
1)      I am not expert in python, but familiar with Java. Python by default uses python-vm and converts into byte code, which is not compatible with JVM byte-code, Jython/Jruby/Jxxx are supporting languages on top of JVM. Jython is executing python on top of JVM, by doing that, we can make use of java library inside python and/or vice versa. 
2)      Python is dynanmic programming (but strongly typed), java is static-typed language.  Currently it is not possible to convert python into java, since python types are dynamically identified, not identified during compilation.
 
Regards
Mohan
 
From:python-list-bounces+mohan.narayanaswamy-2=sc.com at python.org [mailto:python-list-bounces+mohan.narayanaswamy-2=sc.com at python.org] On Behalf Of David Shi
Sent: Monday, June 04, 2012 10:36 PM
To: python-list at python.org
Subject: Where is the latest step by step guide to use Jython to compilePython into Java?
 
Hello,
 
Where is the latest step by step guide to use Jython to compile Python into Java?
 
I found that it was very confusing by reading not updated text.
 
Please help.
 
Regards.
 
David

This email and any attachments are confidential and may also be privileged. If you are not the addressee, do not disclose, copy, circulate or in any other way use or rely on the information contained in this email or any attachments. If received in error, notify the sender immediately and delete this email and any attachments from your system. Emails cannot be guaranteed to be secure or error free as the message and any attachments could be intercepted, corrupted, lost, delayed, incomplete or amended. Standard Chartered PLC and its subsidiaries do not accept liability for damage caused by this email or any attachments and may monitor email traffic.

Standard Chartered PLC is incorporated in England with limited liability under company number 966425 and has its registered office at 1 Aldermanbury Square, London, EC2V 7SB.

Standard Chartered Bank ("SCB") is incorporated in England with limited liability by Royal Charter 1853, under reference ZC18. The Principal Office of SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the United Kingdom, SCB is authorised and regulated by the Financial Services Authority under FSA register number 114276.

If you are receiving this email from SCB outside the UK, please click http://www.standardchartered.com/global/email_disclaimer.html to refer to the information on other jurisdictions.
 
This email and any attachments are confidential and may also be privileged.  If you are not the addressee, do not disclose, copy, circulate or in any other way use or rely on the information contained in this email or any attachments.  If received in error, notify the sender immediately and delete this email and any attachments from your system.  Emails cannot be guaranteed to be secure or error free as the message and any attachments could be intercepted, corrupted, lost, delayed, incomplete or amended.  Standard Chartered PLC and its subsidiaries do not accept liability for damage caused by this email or any attachments and may monitor email traffic.

Standard Chartered PLC is incorporated in England with limited liability under company number 966425 and has its registered office at 1 Aldermanbury Square, London, EC2V 7SB.

Standard Chartered Bank ("SCB") is incorporated in England with limited liability by Royal Charter 1853, under reference ZC18.  The Principal Office of SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the United Kingdom, SCB is authorised and regulated by the Financial Services Authority under FSA register number 114276.

If you are receiving this email from SCB outside the UK, please click http://www.standardchartered.com/global/email_disclaimer.html to refer to the information on other jurisdictions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120604/c38a0c85/attachment.html>


More information about the Python-list mailing list