Quantcast
Channel: JavaPins - Stories tagged with jvm
Viewing all articles
Browse latest Browse all 26

Execute external process from within JVM using Apache Commons Exec library | Experiences Unlimited

$
0
0
Executing external command from within JVM often causes problems- be it in terms of the code to write and manage or in the ease of implementation. I had similar requirement in my Major project for my Under Graduate Degree, where in I had to launch a C program from the Java code. I ran into different issues like- the Main thread getting blocked, the GUI freezing, or reading the output streams and so on. Finally I had to give up the idea and stick with launching the external command externally Had I found the Exec library from Apache Commons then, my work would have been lot easier. Anyways better late then never.
Pin it

Viewing all articles
Browse latest Browse all 26

Trending Articles