Cannot find java.util.stream in java8

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

+7
source share
3 answers

I had the same issue with Netbeans. This means that older versions of JDK 8 were not packaged correctly.

I had the same problem with b84, but I installed the assembly b116 and it works correctly.

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

+2
source

To change the JDK version, go to File β†’ Project Structure and make sure Project SDK and Project Language Level are set to JDK 8.

(I know that you said you already installed the JDK level in the modules, but I am posting it here because there is relatively little information on the Internet about how to do this. Even the IDEA documentation on this subject does not mention this!)

+1
source

Try downloading from: http://jdk8.java.net/lambda/ to support lambda and stream

0
source

All Articles