This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Detect JMF In OS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Detect JMF In OS" Watch "Detect JMF In OS" New topic
Author

Detect JMF In OS

nayan rami
Ranch Hand

Joined: Dec 28, 2010
Posts: 30
Hello Friends

How To Detect JMF In Operating System.And How To Detect JMF Plugin In The OS .And if the JMF plugin is not installed in the system so how to install JMF plugin silently in the os with appropreate os


thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41073
    
  43
You can detect whether JMF is available by trying to access one of its classes via Class.forName(...).

What do you mean by "JMF plugin"? JMF is a library for which plugins are available, but it is not a plugin itself. You can test for the presence of any particular JMF plugin the same way you test for JMF's presence.

Silently installing anything on a computer is nasty; don't do that. But it's probably unnecessary, too; what kind of application is this - desktop (using Swing), applet/JNLP, something else?


Ping & DNS - my free Android networking tools app
nayan rami
Ranch Hand

Joined: Dec 28, 2010
Posts: 30
Ulf Dittmer wrote:You can detect whether JMF is available by trying to access one of its classes via Class.forName(...).

What do you mean by "JMF plugin"? JMF is a library for which plugins are available, but it is not a plugin itself. You can test for the presence of any particular JMF plugin the same way you test for JMF's presence.

Silently installing anything on a computer is nasty; don't do that. But it's probably unnecessary, too; what kind of application is this - desktop (using Swing), applet/JNLP, something else?


thanks for your reply

now i am creating application swing and JNLP and i have to detect that Wether the JMF is install in System OR not if it is not install in the system so install JMF in System silently

can you please give me some idea abut that
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41073
    
  43
Why would you need or want to install JMF? That means opening a whole can of worms. Why not make it part of the application?
nayan rami
Ranch Hand

Joined: Dec 28, 2010
Posts: 30
Ulf Dittmer wrote:Why would you need or want to install JMF? That means opening a whole can of worms. Why not make it part of the application?


yes

you are write but i am using application using jnlp and my whole application downloaded from server side
and and using video capture

and i am using quicktime for java and jmf for that

i previously i have to chek that jmf is install or not and if it is not install so i have to install it silently

so i need some help
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41073
    
  43
You're missing my point: I am saying that you do NOT need to install JMF - you can distribute the libraries along with your application.

I'm not sure that QuickTime for Java and JMF play nicely with one another, but since you're using both it seems that you've got that figured out.

QuickTime for Java, on the other hand, does need to be installed before you can use it, and it can NOT be installed by your application - the user must download and run Apple's installer.
 
 
subject: Detect JMF In OS
 
Similar Threads
JMF in mac OS
Applet for video streaming from Web Cam
How to detect JMF plugin
Determine windows, unix or other OS?
Play MP3 in jar file