0

I downgraded my IntelliJ java project from java 9 to java 8. I followed all the steps in this answer, but when running the project I still get this error: "Error: java: invalid source release: 1.9".

pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>groupId</groupId>
<artifactId>VIN_API</artifactId>
<version>1.0-SNAPSHOT</version>


</project>

1 Answers1

0

In the end, I created a new project and set the java version correctly from the beginning. I did that by following all the steps in the answer mentioned in the question. That solved the problem and the project is now running smoothly.