ARTICLE AD BOX
Is it possible in Java to determine what app is used to open files with a certain extensions by default? For example, whether .odt files are opened by LibreOffice or OpenOffice.
Our app has a custom table class. It has an in-built popup menu which includes the item "Export to OpenOffice". The problem is .odt files may be opened on the user machine by LibreOffice, for example. "Export to .odt" is not a user-friendly name for a menu item (they may not be aware of the underlying extension of the file at all, our users are not tech-savy). The same goes for "Export to OpenDocument Spreadsheet" (frankly, even I wasn't aware of that term until recently).
Some users use Windows, some use Linux, so it'd better be cross-platform, if possible.
Java 8.
