public static void main(final String[] args) throws Exception {

        final Package p = App.class.getPackage();
        final String appname = p.getSpecificationTitle();
        final String versionMaven = p.getSpecificationVersion();
        String[] version = new String[] { "", "" };
        if (p.getImplementationVersion() != null) {
            version = p.getImplementationVersion().split(" ", 2);
        }

        String zmqVersion = null;

        try {

            final int major = ZMQ.version_major();
            final int minor = ZMQ.version_minor();
            final int patch = ZMQ.version_patch();
            zmqVersion = major + "." + minor + "." + patch;

        } catch (Throwable x) {
            zmqVersion = "ERROR! " + x.getMessage();
        }

        final String fmt = "%-7.7s %-15.15s %s%n";

        System.out.printf(fmt, "ZeroMQ", "version:", zmqVersion);
        System.out.printf(fmt, appname, "version:", versionMaven);
        System.out.printf(fmt, appname, "build time:", version[1]);
        System.out.printf(fmt, appname, "build commit:", version[0]);

        System.out.println();
        System.out.println("JNI lib location:       "
                + (EmbeddedLibraryTools.LOADED_EMBEDDED_LIBRARY ? "embedded" : "java.library.path"));
        System.out.println("current platform:       " + EmbeddedLibraryTools.getCurrentPlatformIdentifier());
        final Collection<String> files = EmbeddedLibraryTools.getEmbeddedLibraryList();
        for (final String file : files) {
            System.out.println("embedded library:       " + file);
        }

    }