Different behavior between extension and cj3loader

We have a java applet that runs perfectly when using the CheerpJ browser extension, but fails to fully load when using cj3loader script on the webpage. It gets to Initializing Graphics and then goes blank, never actually showing the applet. We originally had some JNI errors in the console but after we upgraded to https://cjrtnc.leaningtech.com/3_20231106_268/cj3loader.js (from the last help post) those errors disappeared. What is the difference between the extension and the loader and how can we get the full applet to run automatically?
8 Replies
apignotti
apignotti14mo ago
Currently the differences are very significant since the Applet Runner extension is still based on the CJ2 architecture We can most likely fix the problem for you in CJ3 very quickly if you can provide access to the applet
hydrorane
hydroraneOP14mo ago
Does that mean it would work if i used cj2?
apignotti
apignotti14mo ago
Yes, but please let just us fix the bug, we can make it work in CJ3 as well. It's most likely an extremely minor problem, but without access we cannot debug it
hydrorane
hydroraneOP14mo ago
For sure - I will just need permission from my client before I can share the applet directly. If we can show it working with cj2 that will allow us to move forward
apignotti
apignotti14mo ago
In the context of CJ2, you can skip the AOT part completely for the sake of debugging. If the applet works fine with Applet Runner your don't need AOT at all It's an optimization you can do later
apignotti
apignotti14mo ago
hydrorane
hydroraneOP14mo ago
Roger that. thank you. if this works we will definitely be in further touch
apignotti
apignotti14mo ago
If AR works CJ2 works as well, they are the same thing. If something is off please let me know, I can find you which runtime is the closest in terms of version with the current AR
Want results from more Discord servers?
Add your server