title: Cannot import java.time package
body: <p>I'm using NetBeans.  I'm trying to <code>import java.time.*</code>, but NetBeans (and DrJava) insists this doesn't exist.  I've installed JDK 8, but I don't know how to make the program find java.time. Help!</p>
  
  <p>Edit:</p>
  
  <p>For whatever it's worth, I see in the preferences that "source" is JDK 7, but I don't know how to set it to JDK 8 (there's no option for that).</p>
  
  <p>NetBeans about:</p>
  
  <blockquote>
    <ul>
    <li>Product Version: NetBeans IDE 8.0 (Build 201403101706)</li>
    <li>Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1.1</li>
    <li>Java: 1.7.0_09; Java HotSpot(TM) 64-Bit Server VM 23.5-b02</li>
    <li>Runtime: Java(TM) SE Runtime Environment 1.7.0_09-b05</li>
    <li>System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)</li>
    <li>User directory: C:\Users\Mikhail Firer\AppData\Roaming\NetBeans\8.0</li>
    <li>Cache directory: C:\Users\Mikhail Firer\AppData\Local\NetBeans\Cache\8.0</li>
    </ul>
  </blockquote>