Re: run an external program
Quote:
the .exe file can not be found
Is the .exe file on the OS's path so it can find it? Open a command prompt change to a folder without the .exe file and enter the name of the .exe to see if the OS can find the .exe file.
How is the .exe found when you execute the program from your IDE? Is it in a local folder?
Re: run an external program
Hi, yes...the .exe file is on the workspace program folder ( but I have also tried to put it in the src/programm/file.exe (where there is also the .java class that use it) and tried to load using : String cmd = pdfXmlConverter.class.getResource("pdftohtml.exe") .getPath()+" -xml " + sP + " " + tP + "\\data"; to locate it...) as before it work when I run the program from eclipse...and doesn't work when packed in runnable .jar and launched...
Re: run an external program
Hi, I'm really sorry for this stupid question...
the problem was that we need to place the .exe file in the same directory where there is the .jar .
Thank you very much...
See you soon...
By...
Re: run an external program
The OS will not try to execute a .exe file from inside of a jar file.
For testing try copying the jar file and the .exe file to a empty testing folder and open the jar file to see if it finds the .exe file when it is in the same folder as the jar file.