I have opened git project I was running under Eclipse previously in IntelliJ. I have changed to Java 8 in following places:
File -> Project Structure -> SDKs
and
File -> Project Structure -> Project
Where to set Java 8 else? What it wants?
The project is Maven, pom file has only dependencies
sections
UPDATE
I am trying to run under IntelliJ
In order to compile your code you should add maven build section:
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
Also you can go to File | Settings | Build, Execution, Deployment | Compiler | Java Compiler and change it there, but it will cause other developers failures as they need to modify IDE before build
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