code: public void setClassName(String className) {
  
          checkFrozen();
          if (className != null) {
              // remove leading or trailing white space
              className = className.trim();
          }
          if (!CmsStringUtil.isValidJavaClassName(className)) {
              CmsMessageContainer message = Messages.get().container(Messages.ERR_BAD_JOB_CLASS_NAME_1, className);
              if (OpenCms.getRunLevel() > OpenCms.RUNLEVEL_2_INITIALIZING) {
                  throw new CmsIllegalArgumentException(message);
              } else {
                  LOG.warn(message.key());
              }
          } else {
              Class<?> jobClass;
              try {
                  jobClass = Class.forName(className);
                  if (!I_CmsScheduledJob.class.isAssignableFrom(jobClass)) {
                      CmsMessageContainer message = Messages.get().container(
                          Messages.ERR_JOB_CLASS_BAD_INTERFACE_2,
                          className,
                          I_CmsScheduledJob.class.getName());
  
                      if (OpenCms.getRunLevel() > OpenCms.RUNLEVEL_2_INITIALIZING) {
                          throw new CmsIllegalArgumentException(message);
                      } else {
                          LOG.warn(message.key());
                      }
  
                  }
              } catch (ClassNotFoundException e) {
                  CmsMessageContainer message = Messages.get().container(Messages.ERR_JOB_CLASS_NOT_FOUND_1, className);
                  if (OpenCms.getRunLevel() > OpenCms.RUNLEVEL_2_INITIALIZING) {
                      throw new CmsIllegalArgumentException(message);
                  } else {
                      LOG.warn(message.key());
                  }
  
              }
          }
          m_className = className;
          if (getJobName() == null) {
              // initialize job name with class name as default
              setJobName(className);
          }
  
      }
docs: Sets the name of the class to schedule.<p>
  
  @param className the class name to set