Page 1 of 1

Adding videos to a java program

Posted: 28 Feb 2007, 13:53
by Worship
Hey

I am in matric and I would like to find out if their is a way to add videos to any java program. If anyone knows of a tutorial or and example that is on the internet please post it here. Any help would be appreciated

Posted: 28 Feb 2007, 14:06
by KillerByte
your sig is waaaaaayyyyyy tooo heavy

Posted: 28 Feb 2007, 14:20
by Worship
er - sorry i will edit that but I am using Ready to Program for my school syllabus so any help would be appreciated

Posted: 28 Feb 2007, 14:33
by rustypup
first, grab a copy of the Java Advanced Imaging API <<link!
you'll need these extensions installed in your current JRE/JDK.

while you're at it, bookmark:
JAI API FAQ page <<link!
Java Technology Forums: Multimedia and Imaging <<link!

getting to know jai was the most fun i've had in a while... :lol:

Posted: 28 Feb 2007, 15:19
by Worship
Ok i have done that and now? :?:

Posted: 28 Feb 2007, 15:40
by rustypup
you've installed the JAI package?...

there's a bunch of demo's and source included.. tried any of the examples in the links provided?..

<edit>
two clicks of the rodent and we have an excellent example right here...
</edit>

Posted: 28 Feb 2007, 17:06
by Worship
I copied the above and it gave me this error :

Error: Could not find packaged named:

this was for import javax.media.*;

Am i supposed to be using ready to program, to code for java or is there a better program?

Posted: 28 Feb 2007, 17:18
by Worship
rustypup wrote:you've installed the JAI package?...

there's a bunch of demo's and source included.. tried any of the examples in the links provided?..

<edit>
two clicks of the rodent and we have an excellent example right here...
</edit>
JAI package? is that Java Media Framework?

Posted: 28 Feb 2007, 17:23
by rustypup
have you installed the jmf package?

link previously provided here... you need this...

as for a better IDE, check out:
Netbeans or
Eclipse

both are excellent packages...
<edit>
yes, the distributable is JMF, (java media foundation), which includes the JAI API.. :wink:
</edit>

Posted: 28 Feb 2007, 17:26
by Worship
yeah i have downloaded that. i will try one of those other IDEs

Posted: 28 Feb 2007, 20:49
by sv_roadkill
I think that you should copy paste!!

8) :stupid:

Posted: 01 Mar 2007, 18:04
by Worship
I tried NetBeans

package javax.media does not exist

Where do i download this package from?

Posted: 02 Mar 2007, 13:01
by rustypup
Worship wrote: package javax.media does not exist
this package is installed along with the jai... it should be under your java/%ver%/lib or java/%ver%/lib/ext folder.. .

are you running more than one jdk?... in which case, be sure to specify which one you're building for under netbeans, (right click the project folder, select properties>libraries> then verify the "Java Platform" selected... the jmf executable will install into your *latest* jvm.. you may need to manually copy the jar extensions into your jdk jre... (ie, copy the jai packages from the jvm lib/ext to that of your jdk...)

am i speaking russian?.. shout if i am... :wink:

Posted: 02 Mar 2007, 15:10
by Worship
rustypup wrote:
Worship wrote: package javax.media does not exist
this package is installed along with the jai... it should be under your java/%ver%/lib or java/%ver%/lib/ext folder.. .

are you running more than one jdk?... in which case, be sure to specify which one you're building for under netbeans, (right click the project folder, select properties>libraries> then verify the "Java Platform" selected... the jmf executable will install into your *latest* jvm.. you may need to manually copy the jar extensions into your jdk jre... (ie, copy the jai packages from the jvm lib/ext to that of your jdk...)

am i speaking russian?.. shout if i am... :wink:
I got to the libraries part, but then how do u verify Java platform? i dont see an option for that?

sorry but not really skilled in programming especially with netbeans...

Posted: 02 Mar 2007, 17:33
by Worship
YEAH!!!! I finally got it to work in netbeans after Ready to Program was being a @$$hole. At least it works fine in netbeans thanks Rusty for all your help much appreciated!

Oh and what was wrong? I am sooo ashamed to say after installed the jmf, i didn't restart... But Ready to Program still doesn't accept the code but at least netbeans does. Thanks Rusty

Posted: 05 Mar 2007, 08:53
by rustypup
Worship wrote:after installed the jmf, i didn't restart...
ah.. yes... the installer modifies the CLASSPATH to include the jai..

glad to hear you're sorted... have fun :wink: