Solved JOGL on Java jar can't enter HD mode?

A java game through OpenJDK 17 on FreeBSD 14.1 can't enter HD mode. It uses JOGL (or amp or something). The non-HD standard mode and the Java applet itself appears fine, and HD modes under similar conditions works fine Windows and Linux.

The game is 2009Scape (2009 version of Runescape). I have client build notes here and server build notes here. I believe compiling the client and running it as-is without a server will auto-connect to a dev server, and is fine for testing the HD mode (don't need an account; can compile client in 1-3 mins, launch, and there's SD and HD buttons at main menu; the HD button is the issue).

I have a 2009Scape forum thread too (it has the logs currently).
 
Got it!

1. Installed jogamp-jogl ( openjdk8 as a dependency)

2. Re-compiled client with JAVA_HOME=/usr/local/openjdk8

3. This symlink:
Code:
ln -s '/usr/local/lib/libgluegen2-rt.so' ~/'Projects/RT4-Client/src/client/libgluegen_rt.so'

4. Launching with disabled cache:
Code:
'/usr/local/openjdk8/bin/java' -Djogamp.gluegen.UseTempJarCache='false' -jar 'client-1.0.0.jar'
 
Back
Top