Problems with executing program from java

From: Micke (thrashdront_at_hotmail.com)
Date: 12/15/04

  • Next message: banjo123: "problem with compile"
    Date: Wed, 15 Dec 2004 19:05:01 GMT
    
    

    I have problems with this simple program below.
    It starts to read and dump wav data to file but stops after 2MB.
    The cdda2wav processes are still alive but nothing more is happening.
    I have more advanced examples with threads and reading from the process
    buffers but the result is the same.
    Java version is 1.5 and OS is Linux slackware 10.0.

    public class TestRead {
         public static void main (String[] args) {
             try {
                 String[] cmd = {"/usr/bin/cdda2wav", "-D", "/dev/cdrom",
    "-S", "1", "-t", "1"};
                 Process process = Runtime.getRuntime().exec(cmd);
                 process.waitFor();
                 System.out.println("Exit Value=" + process.exitValue());
             }
             catch (Exception x) {
                 x.printStackTrace();
             }
         }
    }


  • Next message: banjo123: "problem with compile"