src/main/java/eu/digitisation/output/Browser.java
public static void open(URI uri) {
        System.out.println(uri);
        if (Desktop.isDesktopSupported()) {
            Desktop desktop = Desktop.getDesktop();
            if (desktop.isSupported(Action.BROWSE)) {
                try {
                    Desktop.getDesktop().browse(uri);
                } catch (IOException ex) {
                    Messages.info(Browser.class.getName() + ": " + ex);
                }
            }
        } else {
            try {
                Runtime.getRuntime().exec(
                        "rundll32 url.dll,FileProtocolHandler " + uri);
            } catch (IOException ex) {
                Messages.info(Browser.class.getName() + ": " + ex);
            }
        }
    }
/**
     * Open a URI
     *
     * @param uri the location of the file or resource
     */
Open a URI
@param uri the location of the file or resource
Open a URI @param uri the location of the file or resource
public static void open(URI uri) {
        System.out.println(uri);
        if (Desktop.isDesktopSupported()) {
            Desktop desktop = Desktop.getDesktop();
            if (desktop.isSupported(Action.BROWSE)) {
                try {
                    Desktop.getDesktop().browse(uri);
                } catch (IOException ex) {
                    Messages.info(Browser.class.getName() + ": " + ex);
                }
            }
        } else {
            try {
                Runtime.getRuntime().exec(
                        "rundll32 url.dll,FileProtocolHandler " + uri);
            } catch (IOException ex) {
                Messages.info(Browser.class.getName() + ": " + ex);
            }
        }
    }
public static void open ( URI uri ) { System . out . println ( uri ) ; if ( Desktop . isDesktopSupported ( ) ) { Desktop desktop = Desktop . getDesktop ( ) ; if ( desktop . isSupported ( Action . BROWSE ) ) { try { Desktop . getDesktop ( ) . browse ( uri ) ; } catch ( IOException ex ) { Messages . info ( Browser . class . getName ( ) + ": " + ex ) ; } } } else { try { Runtime . getRuntime ( ) . exec ( "rundll32 url.dll,FileProtocolHandler " + uri ) ; } catch ( IOException ex ) { Messages . info ( Browser . class . getName ( ) + ": " + ex ) ; } } }
Open a URI
 @param uri the location of the file or resource
Open a URI @param uri the location of the file or resource