Hi all, I ask here also if I'm not sure is a Swing problem...but no idea where this question can go...
So : I have a java program that read a .xml file. This xml file is created by another program ( pdftohtml.exe).
now if I use the console( eclipse ) then I can get the .exe run and generate the xml file I need... with this:
private void convert() { try { Runtime rt = Runtime.getRuntime(); File my_file = new File(tP); my_file.mkdirs(); File my_file2 = new File(tP + "\\pdf2xml.dtd"); this.fos = new FileOutputStream(my_file2); this.osw = new OutputStreamWriter(this.fos); build_dtd(); String cmd = "pdftohtml -xml " + sP + " " + tP + "\\data"; Process p = rt.exec(cmd); p.waitFor(); } catch (Exception e) { new Warning(e.getMessage(), true); } }
Now I have done a GUI and I have build an executable .jar file...
The problem is that now the program doesn't work... it tell me that the .exe file can not be found and so the xml is not generated and so my program is not working...
I hope that the problem is clear and that someone can help me...
by all