|
Subject:
|
Java Media Framework(I am new to java)
|
|
Posted By:
|
amirdiwan4eva
|
Post Date:
|
7/2/2006 4:44:28 AM
|
I want to develop a media player and capture video using a webcam and then play it using Java. For that purpose, i downloaded java media framwework and i am trying to import the library:
import java.media.*;
The library is not getting imported and my friend told me to "Install it in the directory if java runtime". Which directory is the java runtime???? where do i install the JMF???
Can anyone please help me make a player on java and working on JMF??
Xploit
|
|
Reply By:
|
panacea
|
Reply Date:
|
7/3/2006 1:17:57 AM
|
Your Java runtime is located in something like c:\j2sdk1.4.2_08 or c:\Program Files\Java\j2re1.4.2_10. But I would recommend against installing JMF right on top of your Java installation. Instead, install it in its own folder, and then add its /lib/ directory to your classpath. You do this by modifying the CLASSPATH environment variable in your system settings. Seperate the /lib/'s path with the other paths listed using a semicolon.
Jon Emerson http://www.jonemerson.net/ http://www.zoominfo.com/JonEmerson
|
|
Reply By:
|
amirdiwan4eva
|
Reply Date:
|
7/3/2006 1:39:02 PM
|
I installed the JMF in c:\Program Files\java\jre1.5.0_06 but the package
import java.media.*;
is not getting included in the program.There is 'bin' and 'lib' directory in the jre.Should i install it there or is there any other place?Got no idea? Plz somebody help me get that file imported?
As for the other thing JON u told about modifying CLASSPATH env. variable , i could understand that. Please specify that in detail in stepwise instructions.
Thanks for the help Jon.
Xploit
|
|
Reply By:
|
bhavesh bhanushali
|
Reply Date:
|
7/10/2006 8:32:05 PM
|
If u use a IDE like JBuilder u can do this in the project settings . I guess that would be a quickest way. People are welcome with suggestions on this one . I haven't tried this for the media library but i have included other libraries using JBuilder.
|
|
Reply By:
|
panacea
|
Reply Date:
|
7/12/2006 4:50:26 AM
|
There's lots of online documentation for setting your CLASSPATH in different environments. For simple command-line, do a Google search for "java classpath". If you're using Eclipse, go into your Project Properties (right-click on your project, click Properties) and go into Java Build Path > Libraries. For other IDEs, do a help search inside the program.
Jon Emerson http://www.jonemerson.net/ http://www.zoominfo.com/JonEmerson
|