/** Gets the QuickTime for Java version number. */ public String getQTVersion() { if (isJVM64Bit()) return "Not available"; else if (isQTExpired()) return "Expired"; else if (!canDoQT()) return "Missing"; else { try { String qtMajor = r.exec("QTSession.getMajorVersion()").toString(); String qtMinor = r.exec("QTSession.getMinorVersion()").toString(); return qtMajor + "." + qtMinor; } catch (Throwable t) { LOGGER.debug("Could not retrieve QuickTime for Java version", t); return "Error"; } } }
/** Gets the QuickTime for Java version number. */ public String getQTVersion() { if (isJVM64Bit()) return "Not available"; else if (isQTExpired()) return "Expired"; else if (!canDoQT()) return "Missing"; else { try { String qtMajor = r.exec("QTSession.getMajorVersion()").toString(); String qtMinor = r.exec("QTSession.getMinorVersion()").toString(); return qtMajor + "." + qtMinor; } catch (Throwable t) { LOGGER.debug("Could not retrieve QuickTime for Java version", t); return "Error"; } } }
/** Checks whether QTJava is available, throwing an exception if not. */ public void checkQTLibrary() throws MissingLibraryException { if (isJVM64Bit()) throw new MissingLibraryException(JVM_64BIT_MSG); if (isQTExpired()) throw new MissingLibraryException(EXPIRED_QT_MSG); if (!canDoQT()) throw new MissingLibraryException(NO_QT_MSG); }
/** Checks whether QTJava is available, throwing an exception if not. */ public void checkQTLibrary() throws MissingLibraryException { if (isJVM64Bit()) throw new MissingLibraryException(JVM_64BIT_MSG); if (isQTExpired()) throw new MissingLibraryException(EXPIRED_QT_MSG); if (!canDoQT()) throw new MissingLibraryException(NO_QT_MSG); }