Cause: invalid source release: 11

Nabeel 3 years ago

Cause: invalid source release: 11
Error Occured when i run backend

Anton Tananaev 3 years ago

Probably wrong Java version.

Nabeel 3 years ago

which version is suitable?

Anton Tananaev 3 years ago

Java 11 or higher.

Nabeel 3 years ago

my java version "18.0.2.1" 2022-08-18

Anton Tananaev 3 years ago

Are you using the official release? Or you're building from the source code?

Nabeel 3 years ago

YES I AM USING OFFICIAL RELEASE

mc 3 years ago

Trying to build from scratch downloaded latest source code, I have invalid source release: 11 error I followed the instructions on https://www.traccar.org/build-in-intellij-idea/
all settings looks Ok, I am sure I missed important step java version jdk 1.8.0_202 , tried also 1.7 and 1.8.0.2.1

Anton Tananaev 3 years ago

Java versions 7 or 8 are not compatible. You have to use at the very least 11.

mc 3 years ago

Using :

IntelliJ IDEA 2023.1.2 (Community Edition)
Build #IC-231.9011.34, built on May 16, 2023
Runtime version: 17.0.6+10-b829.9 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 750M
Cores: 8

Kotlin: 231-1.8.21-IJ9011.34
mc 3 years ago

installed jdk 11 , still same Cause: invalid source release: 11