Possible Duplicate:
How to check if a program is installed on system
I need to check whether a specific program is installed or not on my system. For example, my program needs to check whether FireFox is installed in my system. If a program is installed , then i want to find the installation directory of that specific program.
I found this but this is not in java. I read this but still i am unable to solve this