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
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
Does that mean it would work if i used cj2?
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
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
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
Leaning Technologies Developer
Run a Java applet - CheerpJ Documentation
Run a java applet in modern browsers
Roger that. thank you. if this works we will definitely be in further touch
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