Running P3D Processing sketch in JAR file, using Netbeans

You’re mixing up OpenJDK and Apache NetBeans in your questions!

AdoptOpenJDK is better than Ubuntu’s OpenJDK in this specific case - it doesn’t suffer from the same bug! Or use another vendor’s OpenJDK. The key thing is that the error Inconsistency detected by ld.so: dl-lookup.c: is caused by the OpenJDK from Ubuntu.