• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to execute python program from Java Swing  RSS feed

 
Ranjani Rao
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I presume you are familiar with Runtime.exec()?
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!