I was able to get Acrobat to execute this way and to pass
it a PDF in the command line doing something like this:
> public class acrobatReader{
> public static void main(String args[])throws IOException{
> Runtime r=Runtime.getRuntime();
> Process p=null;
> String pdfName = "test.pdf";
>
> try
> {
> String s= ("c:\\adobe\\acrobat4\\AcroRd32.exe " + pdfName);
> p=r.exec(s);
> }
> catch(Exception e){
> System.out.println("error==="+e.getMessage());
> e.printStackTrace();
> }
> }
The main problem I have is that if I call another
java program
instead of some C++ executable like this, then my DOS
window stays connected to that process...even if my executable
is run in another
thread. If you have any thoughts on that,
I'd like to hear 'em.
-Mark