Re: JMF?
Subject : Re: JMF?
From: Greg Guerin <email@hidden >
Date: Fri, 26 Sep 2008 16:53:12 -0700
Delivered-to: email@hidden
Delivered-to: email@hidden
James Rome wrote:
Is the Java Media Framework JMF included in Apple's version of Java?
MP3.jar seems to work on my system with SoftSqueeze...
It's possible that JMF was installed as Java extension, either by you
or by some other program you ran.
A simple test program would tell you whether the JMF classes are
available:
- - -
import javax.media.Player;
public class Whatever { }
- - -
If it compiles, then JMF is available. If it doesn't, it's not.
For the more general case, consider a simple command-line tool:
- - -
package i.can;
public class Has
{
public static void main( String[] argz )
{
for ( int it = 0; it < argz.length; ++it )
{
String cheezburger = argz[ it ];
Exception ynot = iCanHas( cheezburger );
if ( ynot == null )
System.out.println( " kbai " + cheezburger );
else
System.out.println( " nope " + cheezburger + " cuz " + ynot );
}
}
public static Exception iCanHas( String clasnam )
{
try
{ Class.forName( clasnam ); }
catch ( Exception ynot )
{ return ynot; }
return null;
}
}
- - -
Usage example.:
java i.can.Has java.lang.Integer javax.media.Player nice.cheezburger
If you need to know where a loaded class resides, use the Class method:
getProtectionDomain().getCodeSource()
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden
Follow-Ups :
Re: JMF?
From: Michael Hall <email@hidden>
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.