title: How to import javax.faces library in Eclipse using JDK8?
body: <p>Based on the <a href="https://stackoverflow.com/questions/24466451/could-current-approach-to-tdd-in-servlets-be-optimized">advice to use JSF</a>, the <a href="http://docs.oracle.com/javaee/6/tutorial/doc/gjaam.html" rel="nofollow noreferrer">following sample</a> would like to be run in order to learn more about JSF and to implement this technique into the servlet. However, a number of libraries is unable to be imported:</p>
  
  <pre><code>package tobedefinedservlet;
  
  import javax.faces.bean.ManagedBean;
  
  @ManagedBean
  public class Hello {
  
      final String world = "Hello World!";
  
      public String getworld() {
          return world;
      }
  }
  </code></pre>
  
  <p><em>javax.faces</em></p>
  
  <p><code>The import javax.faces cannot be resolved</code></p>
  
  <p><em>ManagedBean</em></p>
  
  <p><code>ManagedBean cannot be resolved to a type</code></p>