Hi,
I Have PDF Files on JBoss server in Directory "jboss.server.data.dir", The
JBoss is running in Linux PC, I have writing EJB to read a PDF file, I try to
open this file on a Windows PC. so I have writting this code:
if (OperatingSystem.isWindows())
process = Runtime.getRuntime().exec("cmd /c start \"\" \"" +
fileName +
"\"");
if(OperatingSystem.isLinux())
process = Runtime.getRuntime().exec("/bin/bash -c 'rm -f
"+fileName+"'");
// Runtime.getRuntime().exec("kfm file:"+fileName);
else
if (OperatingSystem.isMac())
process = Runtime.getRuntime().exec(new String[]
{"/usr/bin/open",
fileName });
If Jboss auf Windows lokal, there is no Problem, I can open The PDF file, but
when the Jboss auf dem Server linux and I try from my PC (Window) to open this
file, I have no chance.
Have someone an idea. Thank you.
Radouane
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027796#4027796
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027796
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user