Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Detech installed modules

Posted on 2002-04-07
4
Medium Priority
?
172 Views
Last Modified: 2010-03-31
I have JMF in my application, is there anyway to detech if user has JMF installed ? Say my program still work with/without the JMF, if use have it then they can play sound, video.
0
Comment
Question by:ahTri
  • 3
4 Comments
 
LVL 92

Expert Comment

by:objects
ID: 6924649
Just try and instantiate a JMF class and catch the ClassNotFoundException.
0
 

Author Comment

by:ahTri
ID: 6924661
Can you just give me a few lines sample code. Please
0
 
LVL 92

Accepted Solution

by:
objects earned 200 total points
ID: 6924675
boolean jmf = true;
try
{
   Class.forName("some JMF classname");

   // JMF is installed
}
catch (ClassNotFoundException ex)
{
  // JMF is not installed
  jmf = false;
}
0
 
LVL 92

Expert Comment

by:objects
ID: 6924692
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question