/** * Gets the version of the Fiji client software. * * @return The version string. * @throws IOException on I/O error. */ public static String getSoftwareVersion() throws IOException { final String version = VersionInfo.class.getPackage().getImplementationVersion(); if (version != null) { // Proper release: use the value of 'Implementation-Version' in META-INF/MANIFEST.MF: return version; } // Most likely a development version: final Properties fijiProps = loadFijiSchemaProperties(); return fijiProps.getProperty(FIJI_SCHEMA_VERSION_PROP_NAME, DEFAULT_DEVELOPMENT_VERSION); }