If you need execute console command (curl in this case):
Runtime runtime = Runtime.getRuntime();
try {
    Process process = runtime.exec("curl -d \"input = a b c d\" 'localhost:8090/jobs?appName=Test40&classPath=fr.aid.cim.spark.JavaWord&sync=true&timeout=1000000000'");
    int resultCode = process.waitFor();
    if (resultCode == 0) {
        // all is good
    } 
} catch (Throwable cause) {
    // process cause
}
UPDATE (according to your comment):
Add folowing lines:
System.out.println("is: " + IOUtils.toString(process.getInputStream()));
System.out.println("es: " + IOUtils.toString(process.getErrorStream()));
What is the output?
IOUtils can be found here.