Package com.chemaxon.version
Class VersionInfo
java.lang.Object
com.chemaxon.version.VersionInfo
Provides version information of Chemaxon products.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the build date as string (in local time zone).static String
Returns the build time as string (in local time zone).static Date
Returns the build date and time.protected static String
Returns the build date and time as string in UTC time zone.static String
Returns the year of the build date as string.static String
Returns the display version.static String
Returns the internal version identifier.protected static String
Returns the Java VM version information as string.static int
Deprecated, for removal: This API element is subject to removal in a future version.protected static String
Returns the OS version information as string.static String
Returns the product version.static void
Main method that prints out the version information into the standard output.
-
Constructor Details
-
VersionInfo
public VersionInfo()
-
-
Method Details
-
getVersion
Returns the product version.- Returns:
- the product version string, e.g. "23.5.1".
-
getDisplayVersion
Returns the display version.- Returns:
- the display version string, e.g. "23.5.1" or "Neon.3".
-
getInternalVersionId
Returns the internal version identifier.- Returns:
- the internal version identifier string, e.g. "23.5.1-6789".
-
getJChemTableVersion
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static int getJChemTableVersion()Deprecated, for removal: This API element is subject to removal in a future version.No longer supported, usechemaxon.jchem.version.JChemVersionInfo
instead.Returns the internal version number of JChem database tables. -
getBuildTimestamp
Returns the build date and time.- Returns:
- the build timestamp as
Date
.
-
getBuildDate
Returns the build date as string (in local time zone).- Returns:
- the build date as string, e.g. "2023-03-15".
-
getBuildTime
Returns the build time as string (in local time zone).- Returns:
- the build time as string, e.g. "21:09:46".
-
getBuildYear
Returns the year of the build date as string.- Returns:
- the build year as string, e.g. "2023".
-
getBuildTimestampStr
Returns the build date and time as string in UTC time zone.- Returns:
- the build timestamp as string in UTC time zone, e.g. "2023-03-15 20:09:46 UTC".
-
getJavaVersionStr
Returns the Java VM version information as string.- Returns:
- the Java VM version, e.g. "1.8.0_112 (Oracle Corporation 25.112-b15)".
-
getOsVersionStr
Returns the OS version information as string.- Returns:
- the OS version, e.g. "Windows 7 6.1 (amd64)".
-
main
Main method that prints out the version information into the standard output.If no argument is given, prints out full version information (version, internal version, build date, etc.).
- Parameters:
args
- Command-line arguments:- -version Prints only the version
- -id Prints only the internal version ID
- -date Prints only the build date (timestamp)
-
chemaxon.jchem.version.JChemVersionInfo
instead.