4 Comments

Whoops - get to answer my own question.

While the Swing is very old, the compile and jar package are new this year: javac -version = 19.x

Finally spotted the error: "Uncaught (in promise) CheerpJ only supports Java 8 at this time. Unsupported class ColoradoLakefinder"

Maybe catch this error and save us ancient programmers a long hunt?

Expand full comment
author

Were you using jDeploy for this, or just CheerpJ?

Expand full comment

I'm afraid I can't give you a clear cut answer. Yesterday I was only using CheerpJ - but the .jar file has been hanging around for a year and I don't remember what I did to create it. Quite possibly jDeploy since my goal was to make something that Apple would consider pristine enough to allow on their hardware. (I believe I failed, but that's another story.)

Expand full comment

Well, had no issues running ArgoUML. I have an old Swing .jar file that I would like to use in a browser. It works well from the command line >java -jar. I double checked that I was using the virtual mount point /app. The output from npx http-server -p 8080 shows an apparently successful GET <> for my jar file but the CheerpJ window stops with a spinning design. Since I am able to modify the size of the window in cheerpjCreateDisplay(), I assume it is stuck on the await function. But this is where my debugging skills fail me. Any suggestions on how to debug this would be most appreciated. System details: Firefox 123, Ventura 13.6, mini M2, blocking and virus scanning off, full-disk-access for JavaLauncher, Firefox.

Expand full comment