Can't find java.util.stream in java8

I have installed jdk-8-ea-bin-b82-windows-x64-21_mar_2013 and IntelliJ IDEA 12.0.4 . The strange thing is that I can't find java.util.stream in the intellisense provided by the IDE. I tried to compile either using the IDE or using the notepad and the compiler but it gives an error complaining that java.util.stream cannot be found! I have already set the module settings to use Java8 jdk. Any ideas about this problem?


I had the same problem with Netbeans. It seams that older versions of JDK 8 are not correctly packaged.

I had the same problem with b84, but I installed the build b116 and it is working properly.

PS: I think this is what @rmuller said in his comment


To change the JDK version, go to File --> Project Structure, and make sure both Project SDK and Project Language Level are set to JDK 8.

(I know you said you set the JDK level in the modules already, but I'm posting this here because there is relatively little information online on how to do that. Even the IDEA documentation on this issue doesn't mention it!)


尝试从http://jdk8.java.net/lambda/下载以获得lambda和流支持

链接地址: http://www.djcxy.com/p/12628.html

上一篇: 更改PHP文件上传的默认临时目录

下一篇: 在java8中找不到java.util.stream