Petros Petrou wrote:
Hi,
If you need to embed the Flash or Powerpoint in your application
then I dont know if there is a way to do it but If you need
the user to click a button and the powerpoint to open then
just use this command.
Runtime.getRuntime().exec("your powerpoint path here");
I have done :
public class Test {
public static void main(String[] args) {
System.out.println("Test");
try {
Runtime.getRuntime().exec("D:/eb/temp/exemple/tesTHIERY.pps");
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("Test");
}
}
And I get :
Test
java.io.IOException: CreateProcess: D:\eb\temp\exemple\tesTHIERY.pps
error=193
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java :451)
at java.lang.Runtime.exec(Runtime.java:591)
at java.lang.Runtime.exec(Runtime.java:429)
at java.lang.Runtime.exec(Runtime.java:326)
Test
at com.musidy.test.Test.main(Test.java:19)
Any help would be welcome.