Java calls to execute linux command to report an error

problem description

java.io.IOException: Cannot run program "cd / data/ffmpeg/bin": error=2, does not have that file or directory

the environmental background of the problems and what methods you have tried

this is the directory I came out with pwd, which is available on the linux machine.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

Process p;
        try {
            p = Runtime.getRuntime().exec(new String[]{"cd /data/ffmpeg/bin","-c","./ffmpeg -i "+audioUrl});
    //            p = Runtime.getRuntime().exec("ping -c 3 www.baidu.com");
            p.waitFor();
            BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
            String line = "";            
            while ((line = reader.readLine())!= null) {
                output.append(line);
                LOG.info(""+line);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

what result do you expect? What is the error message actually seen?

Sep.02,2021

the error report shows that this folder is not available, just add the folder creation command to the shell script.
add a script to create a folder on top of the shell script.

p = Runtime.getRuntime().exec(new String[]{"mkdir /data/ffmpeg/bin"});
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4bca7-4393b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4bca7-4393b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?