• Post Reply Bookmark Topic Watch Topic
  • New Topic

Running external application within Java application  RSS feed

 
Chris Burr
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
Stephan van Hulst
Saloon Keeper
Posts: 7992
143
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!