Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

How to check if Java Media Framework is installed?

Thread view: 
Carsten Marx - 13 Jul 2006 09:27 GMT
Hi,

short and simple question:
How can i check properly if the Java Media Framework ist installed on
the Computer?

Scenario;
We have a application which has the abbility to show small movies
inside if the JMF is installed. We do not want to ship the JMF with our
application. Currently we are trying to invoke a Class/Method from the
JMF and if there is a ClassNotFoundException we assume that there ist
no JMF installed. No the best way..... ;-)

I've searched a bit and i didn't found a good solution.. Does anybody
know a proper solution for this?

Thanks and beste regards.

Carsten
Andrew T. - 13 Jul 2006 10:38 GMT
..
> How can i check properly if the Java Media Framework ist installed on
> the Computer?
...
> ...Currently we are trying to invoke a Class/Method from the
> JMF and if there is a ClassNotFoundException we assume that there ist
> no JMF installed. No the best way..... ;-)

The makers of JMF use this applet ..
<http://java.sun.com/products/java-media/jmf/2.1.1/jmfdiagnostics.html>
..source is linked from the page.

I didn't check the source, but I suspect they are doing much
the same as what you've already done.

> I've searched a bit and i didn't found a good solution..

I don't suppose you stumbled across the forum that specialises
in the JMF in your searching?  It can be found here..
<http://forum.java.sun.com/forum.jspa?forumID=28>

HTH

Andrew T.
Carsten Marx - 13 Jul 2006 19:00 GMT
Andrew T. schrieb:

> The makers of JMF use this applet ..
> <http://java.sun.com/products/java-media/jmf/2.1.1/jmfdiagnostics.html>
> ..source is linked from the page.

Thanks for the tip.. but the linked zip with the source is EMPTY...

Has anyone this source code.

Thanks and best regards,

Carsten
Oliver Wong - 13 Jul 2006 19:20 GMT
> Andrew T. schrieb:
>
[quoted text clipped - 5 lines]
>
> Has anyone this source code.

   I tried downloading from the link just now (2006-07-13-14:19 EST), and I
got a zip with the .class file and the .java source code. Try downloading it
again? Or try downloading it from another computer?

   - Oliver
Andrew T. - 13 Jul 2006 19:23 GMT
> Andrew T. schrieb:
>
[quoted text clipped - 3 lines]
>
> Thanks for the tip.. but the linked zip with the source is EMPTY...

Really?!  I just checked the link right now..
<http://java.sun.com/products/java-media/jmf/2.1.1/samples/diagnostics/jmfdiagnos
tics.zip
>
I got a zip file that contained both classes and source.

Andrew T.
Carsten Marx - 13 Jul 2006 20:28 GMT
Andrew T. schrieb:

> Really?!  I just checked the link right now..
> <http://java.sun.com/products/java-media/jmf/2.1.1/samples/diagnostics/jmfdiagnos
tics.zip
>
> I got a zip file that contained both classes and source.
>
> Andrew T.

Damn it...i've downloaded it with Firefox ion Mac OSX and tried
unzipping it with Stuffit.. Folder empty!
Then i tried unzipping it with the shell command unzip... The files are
there.... WTF?

Ok, so now i have the files.. i take a look at it.

Thanks!
Andrew T. - 13 Jul 2006 20:38 GMT
> Andrew T. schrieb:
>
> > Really?!  I just checked the link right now..
> > <http://java.sun.com/products/java-media/jmf/2.1.1/samples/diagnostics/jmfdiagnos
tics.zip
>
> > I got a zip file that contained both classes and source.
..
> Damn it...i've downloaded it with Firefox ion Mac OSX and tried
> unzipping it with Stuffit.. Folder empty!
> Then i tried unzipping it with the shell command unzip... The files are
> there.... WTF?

LOL!  I've given up trying to analyse these little eccentricities
with browsers and HTTP.   ;-)

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.