I just wantto know how can I know the default program associated with any external program/file. For ex-by default, a java file opens with which program? This I have to know using a Java program itself.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On windows:
on Unix\Linux:
you can use
filecommand for specific extension and get the corresponding mapping.at this point you got all the mappings in your properties object.
enjoy!