Connecting Tech Pros Worldwide Forums | Help | Site Map

Animation Flash/Powerpoint from java

Thierry
Guest
 
Posts: n/a
#1: Jul 18 '05
Hello,

I'd like to launch a Flash ou Powerpoint animation from my java
application but I do not know where to start. Does anyone know ?

Thx

PS : My application only has to work on Windows.

Thierry

Petros Petrou
Guest
 
Posts: n/a
#2: Jul 18 '05

re: Animation Flash/Powerpoint from java


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");

Hope that helps

Petros

Thierry wrote:[color=blue]
> Hello,
>
> I'd like to launch a Flash ou Powerpoint animation from my java
> application but I do not know where to start. Does anyone know ?
>
> Thx
>
> PS : My application only has to work on Windows.
>
> Thierry[/color]
Thierry
Guest
 
Posts: n/a
#3: Jul 18 '05

re: Animation Flash/Powerpoint from java


Petros Petrou wrote:[color=blue]
> 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");[/color]

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.
Closed Thread