|
Author |
Topic: EXE running Quicktime (Read 1828 times) |
|
adesso
|
EXE running Quicktime
« on: Apr 18th, 2005, 9:07pm » |
|
I got a simple standalone exe running quicktime - movie and camera. I started with calling 'javaw -cp myApp.jar BApplet myApp' from a batch file (I found somewhere on Discourse). This works well until you're not going to use quicktime. Some of the classes needed here are not exported by P5 or are older than those found in the recent pde.jar (0069). So I included also pde.jar, comm.jar and qtjava.zip in the classpath passed to javaw.exe. It is important to include pde.jar BEFORE the myApp.jar in order to let javaw.exe find the newer classes in pde.jar instead of the older ones exported to myApp.jar. The whole procedure is rather simple: DELETE ALL data in the project's data folder! So P5 will not include data from that folder in the jar file, a MUST if you have a movie file in there! Export your application by means of the 'Export to Web' command in P5. Go to the applet folder and copy there the movie file, if any, and for convenience also pde.jar and comm..jar from the P5 lib\ folder. Then create a batch file of the following form: start javaw -ms128m -mx128m -cp pde.jar;comm.jar;camera.jar;%qtjava%; BApplet camera It seems to be important to have the ';' behind the last -cp statement! The above example is based on the camera.pde in P5's example\video folder. I works like a charm on Windows XP. It's not full frame yet, that will be the next try.
|
|
|
|
|