I am trying to run jar file from a java program I found this link : here. I use the following code:
ProcessBuilder pb = new ProcessBuilder("CEDDextractor_all_img.jar", "-jar", "cedd/");
pb.directory(new File("cedd/"));
Process p = pb.start();
However I m getting the error: Could not load image: Cannot run program "cedd/CEDDextractor_all_img.jar" (in directory "cedd"): CreateProcess error=193, %1 is not a valid Win32 application. I am little bit confused with the paths I need to specify.
Batch command:
java -jar CEDDextractor_all_img.jar -file "file.jpg"