• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Running external application within Java application

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm trying to find a way of using rtmpdump from within java. The first thing a tried was using it with the Runtime class however when I run the following code it just returns with error code 1:


I've tried countless variants of the above including using "cmd /c rtmpdump.exe". After giving up with this I tried to find a port to Java for rtmpdump which proved more successful that I expected however its only a wrapper for the windows dll and I'd really like linux support.

Is there any other ways of doing this? I've seen something for ProcessBuilder rather than runtime.exec() however I didn't really find any useful examples that helped.

Thanks in advance.
 
Saloon Keeper
Posts: 15510
363
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Chris, welcome to CodeRanch!

Read this article: http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic