Solved

Detech installed modules

Posted on 2002-04-07
4
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

636 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