Hi Claes,
Thanks for sharing you config.
Unfortunately I can't see any particular difference between our environment so far:
pi@raspberrypi:~ $ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 Apr 3 14:02 /usr/bin/java -> /etc/alternatives/java
pi@raspberrypi:~ $ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 43 Apr 3 14:02 /etc/alternatives/java -> /usr/lib/jvm/java-11-openjdk-armhf/bin/java
pwrp@raspberrypi:/home/pi $ ls -l $pwr_exe/libjpwr*.so
-rwxr-xr-x 1 pwrp pwrp 10392496 Dec 3 20:50 /usr/pwr59/os_linux/hw_arm/exp/exe/libjpwr_rt_gdh.so
For the rest, when you say you "attached" to the project you mean simply with sdf, right ?
Because in my case, I didn't plan to install the full dev pacakge on pi but only the runtime. Indeed I did by mistake install pwr59 full package first, but then I removed it and reinstalled the pwr59rt as desired.
Perhaps this double install has jeoparized some env variable ?
Do you think it worths re installing everything ?
Secondly, in case it should work correctly with only pwrrt installed (I guess, right ?), should I have anyway the Ld_LIBRARY_PATH and the CLASSPATH declared ? because I don't have them declared at the moment even when logged as pwrp on the rpi.
At last I tested to preset those vairable manually by exporting LD_LIBRARY_PATH and CLASSPATH with your links and then re launching:
pwrp@raspberrypi:/home/pi $ java jpwr.rt.GdhWebSocketServer
but error is same:
pwrp@raspberrypi:/home/pi $ java jpwr.rt.GdhWebSocketServer
java.library.path = /usr/pwr59/os_linux/hw_arm/exp/exe:/usr/java/packages/lib:/usr/lib/arm-linux-gnueabihf/jni:/lib/arm-linux-gnueabihf:/usr/lib/arm-linux-gnueabihf:/usr/lib/jni:/lib:/usr/lib
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/pwr59/os_linux/hw_arm/exp/exe/libjpwr_rt_gdh.so: : cannot open shared object file: No such file or directory
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2659)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
at java.base/java.lang.System.loadLibrary(System.java:1873)
at jpwr.rt.Gdh.<clinit>(Gdh.java:52)
at jpwr.rt.GdhWebSocketServer.openServerSocket(GdhWebSocketServer.java:350)
at jpwr.rt.GdhWebSocketServer.main(GdhWebSocketServer.java:253)
Thanks for your help
Snarf