• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

Detech installed modules

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
ahTri
Asked:
ahTri
  • 3
1 Solution
 
objectsCommented:
Just try and instantiate a JMF class and catch the ClassNotFoundException.
0
 
ahTriAuthor Commented:
Can you just give me a few lines sample code. Please
0
 
objectsCommented:
boolean jmf = true;
try
{
   Class.forName("some JMF classname");

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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now