I'd like to run NASA's Rocket Modeler on my laptop.

I see from the NASA webpage https://www1.grc.nasa.gov/wp-content/plugins/cheerpj-integration/lib/applets/RocketModeler/Rocket.html that they use cheerpj. I installed CheerpJ Applet Runner from the Chrome Webstore. When I download the ZIP https://www.grc.nasa.gov/www/k-12/airplane/javplts/rocket3/RocketModeler.zip, unzip it, and run a local webserver https://crates.io/crates/https for the unzipped directory, navigating there CheerpJ Applet Runner shows "runtime ready", then "loading", and then nothing. How can I get it to work?
30 Replies
apignotti
apignotti•9mo ago
I've just tested myself, and everything works as expected for me I'm using a different HTTP server, but that should not be a problem Check if you have any message in the devtools console, and make sure the .class files can be loaded in the network tab
Cast
CastOP•9mo ago
Yeah, I see "load: class Test0014 not found." in the info section of cheerpOS.js.
apignotti
apignotti•9mo ago
Can you share a screenshot of the page? A common error is open the file directly from the disk (in that case the URL will be file:// instead of http://)
Cast
CastOP•9mo ago
The webserver will serve it though. I'm using http://localhost:8000
apignotti
apignotti•9mo ago
What do you see in the network tab for that file?
Cast
CastOP•9mo ago
A bazillion lines
apignotti
apignotti•9mo ago
Please share a screenshot where that file is visible I am referring to Test0014.class
Cast
CastOP•9mo ago
No description
apignotti
apignotti•9mo ago
Headers tab please, the timings are not useful
Cast
CastOP•9mo ago
No description
apignotti
apignotti•9mo ago
The file can be correctly loaded, that is not the problem. It's possible that some of the used classes is not though. Again, I can see that everything works as expected for me, so there must be something wrong either in your server or in your setup. Something to check, is to make sure you have no other extensions installed. It could help to run in Incognito mode to disable other extensions.
Cast
CastOP•9mo ago
Is any of this helpful to diagnose the problem?
No description
Cast
CastOP•9mo ago
... or this?
No description
apignotti
apignotti•9mo ago
This behavior is not normal. What browser is this?
Cast
CastOP•9mo ago
Google Chrome
apignotti
apignotti•9mo ago
The UI looks fairly different from any Chrome I have previously seen. I was going to guess this is Edge actually
Cast
CastOP•9mo ago
Version 121.0.6167.85 (Official Build) (64-bit)
apignotti
apignotti•9mo ago
It seems to me that the extension is not working correctly in your setup, which is very unusual considering that has not changed in a long time and we ave never heard about any problem Again, please disable any other extensions. I see you have AdBlock installed, which means they are not disabled. I don't think AdBlock would cause any problem directly, but it's a sign that other extensions are installed. Also, what is the full output here: chrome://version/
Cast
CastOP•9mo ago
Yes, there are several other extensions installed. I need them.
apignotti
apignotti•9mo ago
Can you disable them temporarily to make sure they are not interfering with CheerpJ Applet Runner? Many extensions are broken in various way.
Cast
CastOP•9mo ago
apignotti
apignotti•9mo ago
It currently seem to me that the service worker of the extension is not being used, which should be impossible, since the background service worker is a fundamental building block of Chrome extension for the V3 manifest. If disabling all other extensions does not help, please restart Chrome completely. If that also does not help, please try again with a clean Chrome profile. You can create one by using the --user-data-dir=AnyName if you are comfortable with using the command line
Cast
CastOP•9mo ago
Disabling all other extensions didn't help, including in Incognito mode.
apignotti
apignotti•9mo ago
Try again with a clean profile. I am running out of options since this is known to work and I cannot reproduce the problem. At some point is probably wise to try a sane HTTP server. In my testing I am using python3 -m http.server
Cast
CastOP•9mo ago
I updated Chrome to the latest version: Version 122.0.6261.128 (Official Build) (64-bit) With no other extension enabled ... same result With a clean profile ... same result
Cast
CastOP•9mo ago
No description
apignotti
apignotti•9mo ago
Use another HTTP server
Cast
CastOP•9mo ago
And now it works! Must be something wrong with the rust server. 🤷
apignotti
apignotti•9mo ago
The requirement are very basic, so it must be seriously broken. Glad to hear it works for you. Closing For further issues, just use the #cheerpj2 discussion channels. Questions should only be used for specific.... well questions 🙂 Also note that the version of CheerpJ used by Applet Runner is still based on the CJ2 architecture, which is now obsolete. We plan to soon migrate the extension to the new CJ3 architecture
Cast
CastOP•9mo ago
OK, thanks!
Want results from more Discord servers?
Add your server