The second testing is also based on the Java wrapper of the Intel Realsense SDK by Edwin Jakobs. The version is the display of the 16 bit depth image from Processing.
The source code again can be available from the GitHub repository of this post.
The testing is based on the Java wrapper of the Intel Realsense SDK, version 2 found in the following GitHub repository.
It only provides the pre-built binary for Windows version. I used it to test with my Intel Realsense D415 camera. The image below is the screenshot of the camera view.
The source code can be found in the GitHub repository of this post.