What the topic says. I have a demo program that I am running on Linux Mint 19. JDK 17 works fine, JDK 18 gives:
FAIL: java.lang.UnsatisfiedLinkError: /tmp/jogamp_0000/file_cache/jln5860679930746491415/jln3657902754341439289/natives/linux-amd64/libnativewindow_awt.so: /home/stefan/dev/jdk-18/lib/libjawt.so: version `SUNWprivate_1.1' not found (required by /tmp/jogamp_0000/file_cache/jln5860679930746491415/jln3657902754341439289/natives/linux-amd64/libnativewindow_awt.so)
What to do?
Also... is the last released version really from 2015? Is anything newer available?
PS: I'm making an image recognizer in Java and I want to throw in some GPU calculations/renderings, that's why JOGL interests me.
OK I see what you're saying. But on my machine, the exact same program runs without error with JDK 17 but produces the error on JDK 18. I'd say that pretty much means it's gotta be a change in the JDK, no?
There is this Oracle doc mentioning SUNWprivate_1.1, the .1 part of the name being possibly a datastructure or library versioning. I agree that discussing this with OpenJDK team is a good idea. Let us know what they suggest!
For me personally, using Temurin is completely fine. I also would like my software to be usable by others though, so it would be nice to not depend on one specific JDK distribution. But yeah I guess you're right, I'm worrying too much, lol. Linux users are far fewer than Win/Mac users and I could even ship a bundle with Temurin and my Java code.
Your feedback is valuable and I still would appreciate this problem to be fixed in other JDKs. Yes you can ship a bundle with Temurin; if you need some help to do it, let me know. You can either use JPackage and/or JNDT depending on the licence of your own code.
I fear the problem may however happen on 2.4 as Julien already faced it as mentioned here.
I haven't found your discussion with the Oracle developer. Beside explaining how to detect that SUNWPrivate is in the jar or not, did he explained what the purpose of SUNWPrivate, why JOGL may have embed it in the past, why still having it in the jar may prevent the libraries ?
I unpacked jogamp 2.3.2 fat jar and haven't found any SUNWprivate*.so inside, although I did encounter this problem on Ubuntu 18 with jogl 2.3.2 in the past.