title: How to fix Couldn't resolve reference to JvmType 'Generator' in Xtext
body: <p>When running my generator configuration in <code>MWE2</code>, I am getting the following error message:</p>
  
  <blockquote>
    <p>Couldn't resolve reference to JvmType
    'Generator'....</p>
  </blockquote>
  
  <pre><code>module org.xtext.example.MyDsl 
  import org.eclipse.emf.mwe.utils.*
  import org.eclipse.xtext.generator.*
  import org.eclipse.xtext.ui.generator.*
  
  var grammarURI = "classpath:/org/xtext/example/MyDsl.xtext"
  var file.extensions = "mydsl"
  var projectName = "org.xtext.example.mydsl"
  var runtimeProject = "../${projectName}"
  
  Workflow {
    bean = StandaloneSetup {
      platformUri = "${runtimeProject}/.."
    }
    component = DirectoryCleaner {
      directory = "${runtimeProject}/src-gen"
    }
    component = DirectoryCleaner {
      directory = "${runtimeProject}.ui/src-gen"
    }
    component = Generator {
      pathRtProject = runtimeProject
      pathUiProject = "${runtimeProject}.ui"
      projectNameRt = projectName
      projectNameUi = "${projectName}.ui"    
      language = {
        uri = grammarURI
        fileExtensions = file.extensions
        fragment = grammarAccess.GrammarAccessFragment {}
  
      }
    }
  }
  </code></pre>
  
  <p>How can I fix It?</p>