I am getting an error while running mvn clean install
for the web.service.rest
Here is the error log. Is this a problem only on my end?
[ERROR] Source option 6 is no longer supported. Use 7 or later. [ERROR] Target option 6 is no longer supported. Use 7 or later.
@dkayiwa @ibacher
What’s your JDK version
Currently we only support using JDK 8 to build the REST module for exactly this reason. We could conceivably update the module to support Java 7 or 8 as a minimum version, but that would be a major and potentially breaking change, since 1.x was designed to run on Java 6 as a minimum (2.x runs on Java 8 as a minimum).
Ohhh I realised i my JAVA_HOME path was set to Java 18 not Java 8 I have configured my machine to point to Java 8.
I’ve found jenv or sdkman useful for managing Java projects in different language versions. jEnv
can be a little more useful, since you can set a default for an entire folder that will apply to all subfolders, but SdkMan can also handle installing multiple JVMs.
Ohhh thank you @ibacher I have been looking for such a tool.