Forums Register Login

How to execute python program from Java Swing

+Pie Number of slices to send: Send
Hi,

I am trying to design a JAVA GUI using Swings. I want to execute a python program which is executable with extension "filename.py" from my JAVA program.
Please guide and help me. Can someone help me with syntax? Its really urgent.

Thanks & Regards
Ranjani
+Pie Number of slices to send: Send
I presume you are familiar with Runtime.exec()?
+Pie Number of slices to send: Send
 

Campbell Ritchie wrote:I presume you are familiar with Runtime.exec()?



or the more flexible ProcessBuilder where the 'traps' still apply to the generated Process objects.
You guys haven't done this much, have ya? I suggest you study this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 615 times.
Similar Threads
AttributeError when calling pyhton scripts from java class
java to exe using microsoft sdk
Jython ? what for ?
New Jython book
Python Portability and mobile apps
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 06:39:34.