Solved

Detech installed modules

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 97
netstat -ano | find "8000" and taskkill /f /pid 2984 3 57
more than one jdk and one jre 1 41
Java: The Public Class Main 4 16
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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
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:

777 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