Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro Java
|
Pro Java Expert level Java questions not about a specific book. Please indicate your version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 2nd, 2006, 04:44 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Java Media Framework(I am new to java)

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
 
Old July 3rd, 2006, 01:17 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old July 3rd, 2006, 01:39 PM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old July 10th, 2006, 08:32 PM
Authorized User
 
Join Date: Jun 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old July 12th, 2006, 04:50 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
[Announce] LGPL Java, XSL and Ajax based Framework erkan_cengiz XSLT 0 March 27th, 2008 10:27 AM
java.lang.OutOfMemoryError: Java heap space meetkotresh J2EE 1 February 2nd, 2008 01:52 AM
Java Code - Wrox - Beginning JAVA - Ivor Horton ponguru Java Databases 3 May 18th, 2006 12:30 PM
Spring Framework(java) dtrprasad BOOK: Professional Java Development with the Spring Framework 0 October 3rd, 2005 08:05 PM
Java Spring Framework (Code Download) edwin_craig BOOK: Professional Java Development with the Spring Framework 0 September 29th, 2005 09:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.