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
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
Yeah, I see "load: class Test0014 not found." in the info section of cheerpOS.js.
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://)
The webserver will serve it though.
I'm using http://localhost:8000
What do you see in the network tab for that file?
A bazillion lines
Please share a screenshot where that file is visible
I am referring to
Test0014.class
Headers tab please, the timings are not useful
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.
Is any of this helpful to diagnose the problem?
... or this?
This behavior is not normal. What browser is this?
Google Chrome
The UI looks fairly different from any Chrome I have previously seen. I was going to guess this is Edge actually
Version 121.0.6167.85 (Official Build) (64-bit)
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/
Yes, there are several other extensions installed. I need them.
Can you disable them temporarily to make sure they are not interfering with CheerpJ Applet Runner?
Many extensions are broken in various way.
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 lineDisabling all other extensions didn't help, including in Incognito mode.
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
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
Use another HTTP server
And now it works! Must be something wrong with the rust server. 🤷
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
OK, thanks!