Processing OpenNi error

Just installed drivers for an old XBOX360 Kinect v1 on Ubuntu 22.04. I can see the device and try some basic examples of freenect like glview. However, when I run some basic Processing examples from the OpenNI library, I get the following error :

UnsatisfiedLinkError: 'void SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()'
java.lang.UnsatisfiedLinkError: 'void SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()'
at processing.opengl.PSurfaceJOGL.lambda$initAnimator$2(PSurfaceJOGL.java:426)
at java.base/java.lang.Thread.run(Thread.java:833)

I have installed all other available libraries for ubuntu : Kinect V2 for Processing ( I guess useless as I have v1) and Kinect4WinSDK (is this ok to use in ubuntu btw?)
Do you have a suggestion what could I try to make this work ?
Thanks

Updates : I just installed Processing 3.5.4 and the error when I launch the OpenNi DepthImage example has evolved into :

`
java.lang.RuntimeException: Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x773b800226d0, owner true, ResourceToolkitLock[obj 0x6bf59905, isOwner true, <6fca00a3, 2ac8933e>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>]]], but: [GLProfile[GLES2/GLES3.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]
	at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:410)
	at java.lang.Thread.run(Thread.java:748)
RuntimeException: Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x773b800226d0, owner true, ResourceToolkitLock[obj 0x6bf59905, isOwner true, <6fca00a3, 2ac8933e>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>]]], but: [GLProfile[GLES2/GLES3.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]`

Does this make any sense to someone? Thank you

Also while debugging on my Nvidia driver I discover they are incorrectly loaded. Could this be related?

Where did you get the OpenNI library; I don’t see that library listed on my system (macos)?

I’ve installed through Processing/Sketch/Library/Search Library by typing kinect in the search bar. It has basic examples for movement detection with Kinect v1.

I get the same error message as you; in addition this explanation. Unfortunately I don’t know where to get the file that it says is missing:

That’s a very old library apparently. You can do away with the current error message by installing Processing 2.2.1, but then you’ll have another problem: