Linux.com

Author Message
Joined: Dec 20, 2008
Posts: 34
Other Topics
Posted Apr 07, 2009 at 5:31:02 PM
Subject: How to python script in JAVA program
Hi, I want to execute a python script in my java program. can any one tell me how I can I do that. Thanks in Advanced
Back to top Profile Email Website
Rubberman
Joined Jul 30, 2007
Posts: 944
Location:40 miles west of Chicago

Other Topics
Posted: Apr 08, 2009 9:18:58 PM
Subject: How to python script in JAVA program
Yes, but the relevant question is whether or not you want to process the resulting data in your Java program, or just want to execute the python script. The simplest means of starting a system process in Java is probably one of the Runtime.exec() methods. These is found in your Java Runtime Core API classes. A URL to the latest docs is: http://java.sun.com/javase/6/docs/api/

Sometimes real fast is almost as good as real time. Remember, Google is your friend!

Back to top Profile Email Website AOL Instant Messenger
Evan
Joined Mar 04, 2009
Posts: 3

Other Topics
Posted: May 03, 2009 3:49:56 PM
Subject: How to python script in JAVA program
runtime.exec()?? oh~some help with me thanks.

Linux belongs to you world...

Back to top Profile Email Website MSN
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya