I'm using NetBeans. I'm trying to import java.time.*, 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!
Edit:
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).
NetBeans about:
- Product Version: NetBeans IDE 8.0 (Build 201403101706)
- Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1.1
- Java: 1.7.0_09; Java HotSpot(TM) 64-Bit Server VM 23.5-b02
- Runtime: Java(TM) SE Runtime Environment 1.7.0_09-b05
- System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
- User directory: C:\Users\Mikhail Firer\AppData\Roaming\NetBeans\8.0
- Cache directory: C:\Users\Mikhail Firer\AppData\Local\NetBeans\Cache\8.0
java.time package is only available in Java 8, and you're apparently compiling your code using Java 7
Working for my. Sorry for my english
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With