Solved

Detech installed modules

Posted on 2002-04-07
4
161 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 50 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now