exec(String[]) 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Karsten Knetsch
> Sent: Monday, February 21, 2005 3:27 PM
> To: [email protected]
> Subject: [iText-questions] concat pdf won´t work on pathes with 
> 
> hello,
> 
> i wrote a java application to start the pdftool "concat_pdf" 
> from the inside
> of my application. therefore i use the 
> runtime.getruntime().exec(...) in
> which the files i would like to concatenate where chosen by a 
> jfilechooser. 
> .
> File f1 = chooser1.getSelectedFile();
> File f2 = chooser2.getSelectedFile();
> .
> .
> .
> String file1 = f1.getAbsolutePath()+" ";
> String file2 = f2.getAbsolutePath()+" ";
> .
> .
> .
> Process p = Runtime.getRuntime().exec("cmd /c java -cp 
> lib/itext-1.2.jar
> com.lowagie.tools.concat_pdf"+file1+file2+"result.pdf");
> everything works quite as well, but in the case that i choose 
> a file with a
> path like c:\check\ab c\test.pdf it won´t work on a windows system!
> 
> i think it is a problem of the blank/spaces in the path!
> 
> how should a path to work correctly look like?
> how could i change the path of the file to work perfectly? 
> 
> thanks
> 
> 3k 
> 
> 
> -- 
> DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
> AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from 
> real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to