code: private static boolean hasJavaWebstartLibrary() {
          boolean hasWebStartLibrary = true;
          try {
              Class.forName("com.sun.jnlp.JNLPClassLoaderIf");
          } catch (final ClassNotFoundException e) {
              hasWebStartLibrary = false;
          }
          return hasWebStartLibrary;
      }
docs: Check that javaws.jar is accessible.
  
  @return true if javaws.jar is accessible