this work for me under ubuntu
@Component
private ActionLink callExec;
@OnEvent(component = "callExec", value = EventConstants.ACTION)
private void onActionFromCallExec()
{
try
{
String line;
Process process =
Runtime.getRuntime().exec("/usr/bin/pdf2swf
/home/shomburg/Downloads/Angebot2.pdf -o
/home/shomburg/Downloads/Angebot2.swf");
BufferedReader input = new BufferedReader(new
InputStreamReader(process.getErrorStream()));
while ((line = input.readLine()) != null)
{
System.err.println(line);
}
process.waitFor();
input.close();
}
catch (IOException e)
{
e.printStackTrace();
}
catch (InterruptedException e)
{
e.printStackTrace();
}
}
with regards
Sven Homburg
Founder of the Chenille Kit Project
http://chenillekit.codehaus.org
2011/8/25 daoudja <[email protected]>:
> i already did that it's /usr/local/bin/pdf2swf
> more precisely i did this
>
> Process process =
> Runtime.getRuntime().exec(getExecutablePath() + " " +
> getArguments(output) );
>
> public String getExecutablePath() {
> return "/usr/local/bin/pdf2swf";
> }
> public String getArguments(String output) {
> return getInputFilename() +" -o "+ output+".swf"+ " -T 9 -f";
> }
>
> when it's tested alone it's fine i can see the file produced but within
> tapestry i find nothing at the end
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Runtime-exec-tp4734811p4734971.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]