I am trying to use Pandoc to create a PDF from a .md file in a Processing sketch using the method below:
String[] command = {"pandoc", "-s", "-o", PDFname, "newFileName"};
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(command);
(Where PDFname
is a string), but I am getting the following error:
java.io.IOException: Cannot run program "pandoc": error=2, No such file or directory
when I run pandoc from terminal I have not problems, so I am not sure what is going wrong here.