[Tutor] Using Java from Python was RE: Tutor Digest, Vol 96, Issue 69

Prasad, Ramit ramit.prasad at jpmorgan.com
Fri Feb 17 00:57:26 CET 2012


>I am fairly experienced in java and I was wondering how to use java in python code, if you could give me any tips.\

Hi,
Please remove any irrelevant sections of the digest if you are replying to it (which in this case is everything) and change the subject to be more descriptive. Also, top posting (replying above relevant text) is considered bad form.

Now getting down to your question, what exactly do you mean by "using" java "in" python? 1. Call a java program from Python? 2. Using Python code with a Java virtual machine? 3. Use actual Java code in Python?

My answers:
1. Look at Subprocess.call (preferred) or os.system functions.
2. Take a look at Jython.
3. I have no idea.

Ramit


Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423

--

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  


More information about the Tutor mailing list