title: Eclipse: Pattern can't be resolved to a type
body: <p>I tried looking for a solution to this error but still can't use the class <code>java.util.regex.Pattern</code>, So I tried to make the import manually but I can only see three classes <code>Matcher</code>, <code>MatchResult</code> and <code>PatternSyntaxException</code>.</p>
  
  <p>When looking in <code>C:\Program Files\Java\jdk1.8.0_11\src.zip</code> I can see the <code>Pattern.java</code> file, and I can see also the class Pattern.class when opening the JAR <code>C:\Program Files\Java\jdk1.8.0_11\jre\lib\rt.jar</code>.</p>
  
  <p>Could someone help why Eclipse can't see this <code>Pattern</code> class?</p>
  
  <p>This is the error as you can see it in Eclipse:
  <img src="https://i.stack.imgur.com/6fg5E.jpg" alt="enter image description here"></p>