Hello Oliver & Aeric,
thanks for your great replies.
On Win10 I have installed: (OpenJDK)
java version "11.0.12" 2021-07-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.12+8-LTS-237)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.12+8-LTS-237, mixed mode)
On Raspberry I have installed:
jerry@192:~$ /usr/bin/java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode)
So there is a tiny difference, so to make sure I uninstalled and reinstalled(cause it did not want to update):
now followed this:
https://adoptopenjdk.net/installation.html?variant=openjdk11&jvmVariant=hotspot#aarch64_linux-jdk
instead of installing directly via cmd(Putty).
jerry@192:~$ tar xzf OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.12_7.tar.gz
jerry@192:~$ export PATH=$PWD/jdk-11.0.12+7/bin:$PATH
jerry@192:~$ java -version
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode)
In B4A I have an application with which I try to connect to the jRDC server on the Raspberry.
Followed the HowTo on how to embed the needed scripts into that program.
I made a new build of jRDC.jar with the change as Aeric mentioned.
If it's running I know how to KILL it with the PID nr.
Now used this to run it:
B4X:
/home/jerry/jdk-11.0.12+7/bin/java -jar /home/jerry/app/jRDC.jar
then a bunch of text and then tadaaaa:
2021-08-11 19:55:31.554:INFO

ejs.Server:main: Started @2312ms
jRDC is running (version = 2.22)
that looks promising, I nearly gave up....
still an fetching problem although the credentials are copied from source which I use in PHP to connect to the db.
and because fetching is not succeeding this is the error in B4A:
ResponseError. Reason: java.net.SocketTimeoutException: timeout, Response:
ERROR: java.net.SocketTimeoutException: timeout
So when I get the connection to the DB when can start with the nohup as you said.
Now I have to figure out why it is not connecting.
Thanks!