I cannot get the example applet to work in my chrome browser on mac os

I tried cloning the example here - https://github.com/leaningtech/cheerpj-meta/tree/main/examples/Pitch-Applet But am not able to get it to run
GitHub
cheerpj-meta/examples/Pitch-Applet at main · leaningtech/cheerpj-meta
Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins. - leaningtech/cheerpj-meta
No description
No description
29 Replies
apignotti
apignotti3w ago
The example is already integrated with CheerpJ, which means the applet runner is not required and will actually cause conflicts.
SS Zeklord
SS ZeklordOP3w ago
even with the extention disabled i get the same view
No description
SS Zeklord
SS ZeklordOP3w ago
im using an m2 pro on mac os 15.2 and chrome 131.0.6778.265 (Official Build) (arm64)
SS Zeklord
SS ZeklordOP3w ago
No description
No description
apignotti
apignotti3w ago
It's certainly not a platform issue. CheerpJ is completely cross platform.
SS Zeklord
SS ZeklordOP3w ago
on chrome console i see these logs on local i see ❯ python3 -m http.server 8000 Serving HTTP on :: port 8000 (http://[::]:8000/) ... ::1 - - [15/Feb/2025 15:30:00] "GET /index.html HTTP/1.1" 304 - ::1 - - [15/Feb/2025 15:30:02] code 404, message File not found ::1 - - [15/Feb/2025 15:30:02] "GET /index.service.worker.js HTTP/1.1" 404 - ::1 - - [15/Feb/2025 15:30:05] "GET /index.html HTTP/1.1" 304 - ::1 - - [15/Feb/2025 15:30:07] code 404, message File not found ::1 - - [15/Feb/2025 15:30:07] "GET /index.service.worker.js HTTP/1.1" 404 - ::1 - - [15/Feb/2025 15:30:37] code 404, message File not found ::1 - - [15/Feb/2025 15:30:37] "GET /index.service.worker.js HTTP/1.1" 404 - ::1 - - [15/Feb/2025 15:32:32] "GET /index.html HTTP/1.1" 304 - ::1 - - [15/Feb/2025 15:32:35] code 404, message File not found ::1 - - [15/Feb/2025 15:32:35] "GET /index.service.worker.js HTTP/1.1" 404 -
apignotti
apignotti3w ago
Can you check if you have other extensions or previously installed service workers that are breaking CheerpJ? index.service.worker.js is not part of CheerpJ
SS Zeklord
SS ZeklordOP3w ago
let me try running on a guest profile in chrome so it wont use any extensions whats the proper way to serve the index.html file? is using python server like above correct
apignotti
apignotti3w ago
I also noticed logs about lockdown-install.js which is not part of CheerpJ The python HTTP server is ok Any server supporting HTTP byte ranges is sufficient
SS Zeklord
SS ZeklordOP3w ago
No description
SS Zeklord
SS ZeklordOP3w ago
❯ python3 -m http.server 8000 Serving HTTP on :: port 8000 (http://[::]:8000/) ... ::1 - - [15/Feb/2025 15:35:48] "GET /index.html HTTP/1.1" 200 - ::1 - - [15/Feb/2025 15:35:49] code 404, message File not found ::1 - - [15/Feb/2025 15:35:49] "GET /favicon.ico HTTP/1.1" 404 -
apignotti
apignotti3w ago
Can you check the network tab?
SS Zeklord
SS ZeklordOP3w ago
No description
SS Zeklord
SS ZeklordOP3w ago
it seems to keep fetching rt.jar
SS Zeklord
SS ZeklordOP3w ago
No description
apignotti
apignotti3w ago
CheerpJ is still loading, it seems you have a very poor network connection, or potentially you might be located in mainland China where our CDN does not operate
SS Zeklord
SS ZeklordOP3w ago
oh weird, no im in austin texas in the US
No description
SS Zeklord
SS ZeklordOP3w ago
is there a loading screen it can show instead of saying the applets not supported in the env?
SS Zeklord
SS ZeklordOP3w ago
it works now though thanks
No description
apignotti
apignotti3w ago
CheerpJ is correctly loading, but the CDN is being very slow. It quite likely it will run faster from the second access on There is a loading screen that is displayed before any Java window is creased. It's quite possible the window was created and not populated though.
SS Zeklord
SS ZeklordOP3w ago
yah cause even on second run its not using any cached resources its refetching and not showing a loading screen, but from network tab i can see it is trying to load
No description
SS Zeklord
SS ZeklordOP3w ago
eventually it gets to this screen
No description
SS Zeklord
SS ZeklordOP3w ago
before it loads the app
apignotti
apignotti3w ago
Please follow this instructions to export a HAR file: https://cheerpj.com/docs/guides/cheerpj-debug#extracting-a-har-file
Leaning Technologies Developer Hub
Debugging CheerpJ - CheerpJ Documentation
How to properly debug CheerpJ in the browser
apignotti
apignotti3w ago
The CDN is misbehaving here, but everything looks correct in our upstream server and my location
SS Zeklord
SS ZeklordOP3w ago
ok thanks is there a way to see system.out.println logs from java in the console or anywhre to debug things once i got back to better wifi load times is better now
apignotti
apignotti3w ago
System.out is automatically directed to the browser console, unless there has been application side overrides of output stream I would still ask you if you could record the HAR to help us understand if there is something weird going on at the CDN level
SS Zeklord
SS ZeklordOP3w ago
Sure here you go
apignotti
apignotti3w ago
Thanks, the behavior seems now normalized and equivalent to what I see locally. The long loading times from your previous screenshot are not visible anymore. I've closed the issue, for further discussions please consider using the #cheerpj channel, so that other members of the community can help as well

Did you find this page helpful?