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?
apignotti
apignotti•66d 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
Cast•66d ago
Yeah, I see "load: class Test0014 not found." in the info section of cheerpOS.js.
apignotti
apignotti•66d 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
Cast•66d ago
The webserver will serve it though. I'm using http://localhost:8000
apignotti
apignotti•66d ago
What do you see in the network tab for that file?
Cast
Cast•66d ago
A bazillion lines
apignotti
apignotti•66d ago
Please share a screenshot where that file is visible I am referring to Test0014.class
Cast
Cast•66d ago
No description
apignotti
apignotti•66d ago
Headers tab please, the timings are not useful
Cast
Cast•66d ago
No description
apignotti
apignotti•66d 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
Cast•66d ago
Is any of this helpful to diagnose the problem?
No description
Cast
Cast•66d ago
... or this?
No description
apignotti
apignotti•66d ago
This behavior is not normal. What browser is this?
Cast
Cast•66d ago
Google Chrome
apignotti
apignotti•66d ago
The UI looks fairly different from any Chrome I have previously seen. I was going to guess this is Edge actually
Cast
Cast•66d ago
Version 121.0.6167.85 (Official Build) (64-bit)
apignotti
apignotti•66d 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
Cast•66d ago
Yes, there are several other extensions installed. I need them.
apignotti
apignotti•66d 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
Cast•66d ago
apignotti
apignotti•66d 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
Cast•66d ago
Disabling all other extensions didn't help, including in Incognito mode.
apignotti
apignotti•66d 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
Cast•66d 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
Cast•66d ago
No description
apignotti
apignotti•66d ago
Use another HTTP server
Cast
Cast•66d ago
And now it works! Must be something wrong with the rust server. 🤷
apignotti
apignotti•66d 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
Cast•66d ago
OK, thanks!
Want results from more Discord servers?
Add your server
More Posts
Accessing Java class / object attributes in CheerpJ based PWAI'm new to CheerpJ and I am working on creating a React Native module for ImageJ.js (CheerpJ translaInt ConversionThere is a function in Java, that calls a native function with string argument, like `setContentViewState of the C++ modules supportWhen the new C++ modules are expected to be supported?Cheerpj hangs after "Jar is loaded,main is starting"I am trying to use cheerpj to run my Java Swing app in a browser. I can run the example SwingSet3.jaStretch to Fit Height IssueRunning a basic application in the example html provided on the CheerpJ website. My html code is efProblems with CheerpjHello, I am trying to get my Java app running in CheerPJ - I was successful in creating a simple "HeCache Results for Faster Startup?Hello new user here. Performing initial research into potential commercial application usage. 1) AmUnknownHostException happened when the Java application connect to serverUnknownHostException happened when the Java application connect to server. The host name is the sameHTTP server returned compressed partial data. That should not happen. CheerpJ cannot run.Browser shows error "HTTP server returned compressed partial data. That should not happen. CheerpJ cAccesing the standard out and standard error stream from the Java processHow do I from javascript access the output streams from the started Java process?Any plan on adding internet access without Tailscale?Hi there ! Do you plan on adding internet access without the need to install Tailscale etc, that wour[((0 + c) | 0)] is not a function when instantiating objectHello, thank you all for developing CheerpJ, it is an impressive tool! I am playing around with tryiI'm always looking for the URL of the latest build of cj3loader.js by searching articlesI'm always looking for the URL of the latest build of cj3loader.js by searching articles, but is theDifferent behavior between extension and cj3loaderWe have a java applet that runs perfectly when using the CheerpJ browser extension, but fails to fulCan I try CheerpX?I know it's not fully ready yet, but I think it's fine for my use cases in its current staterunning java decompiler in browser, weird error(copy-pasting from #cheerpj3 since i noticed this channel existed) i'm trying to run the procyon javAccessibility of Java applicationsHi team, I noticed that apps running on CheerpJ are not accessible to people with disabilities. Thisjnlp launch verification fails with 64 bit swt librariesThe launch has below error. Java.lang.unsatisfiesLinkError: cannot load 64-bit SWT libraries on 32-bhow to debug why the jar main class is not loadingI am trying to convert old jnlp client to html format. I followed the documentation and used cheerpjTrying to get CheerpJ to actually launch a programI'm trying to get CheerpJ to run UPRandomizer in a browser, but I can't figure out how to get it to