By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,246 Members | 1,515 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,246 IT Pros & Developers. It's quick & easy.

Animation Flash/Powerpoint from java

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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:
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

Jul 17 '05 #2

P: n/a
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.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.