Closed sanitariu closed 11 months ago
Hi Todor,
it looks like you don't have a Java 17 or newer installed on your PI.
You can download the latest version (JDK 21) and choose your target architecture linux/aarch64.
Then unpack it to e.g. /usr/lib/jvm
using sudo tar xvf openjdk-21_linux-aarch64_bin.tar.gz -C /usr/lib/jvm
and run the following commands to update the default Java runtime:
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-21/bin/java 1000
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-21/bin/javac 1000
Then you need to select the new Java 21 Runtime and Compiler:
sudo update-alternatives --config java
sudo update-alternatives --config javac
Its quite well described here.
I think I can close this issue
dri@dri ~/bms-to-inverter $ mvn -v Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546) Maven home: /usr/share/maven-bin-3.9 Java version: 1.8.0_252, vendor: IcedTea, runtime: /opt/icedtea-bin-3.16.0/jre Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "5.10.128-gentoo", arch: "amd64", family: "unix"
This is my mvn version. Trying to build gave me error flag --release, so i commented out
dri@dri ~/bms-to-inverter $ java -version openjdk version "1.8.0_252" OpenJDK Runtime Environment (IcedTea 3.16.0) (Gentoo icedtea-3.16.0) OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
Can you tell me the OS you build the zip file and i will install the same ?
Ok i build it finally :) Now setting up MQQT
Hello, I am trying to build this on a PI4 device. Here is the error i got:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project core-api: Fatal error compiling: error: release version 17 not supported -> [Help 1]
Maybe my mvn is too new ?
root@sol:~/bms-to-inverter # mvn -v Apache Maven 3.6.3 Maven home: /usr/share/maven Java version: 11.0.18, vendor: Raspbian, runtime: /usr/lib/jvm/java-11-openjdk-armhf Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "6.1.31-v8+", arch: "arm", family: "unix"