• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling perl scrip from java program  RSS feed

 
muhsin sabeer
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have perl program to search for a record from large text file. Now am developing Swing GUI to display the result. How can I call the perl script and display the result in Java GUI. Swing GUI and perl script are already ready for this requirements. Please tell me how to call the perl script when user click button in Swing GUI.

Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can run a script using Runtime.exec(). See the Java Intermediate FAQ for an article with more details.
[ December 02, 2005: Message edited by: Ulf Dittmer ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!