leaningtech / cheerpj-meta

Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.
https://labs.leaningtech.com/cheerpj
434 stars 21 forks source link

java.lang.UnsatisfiedLinkError on java.util.zip.Adler32.updateBytes #193

Closed AlexeyAnischenko closed 3 months ago

AlexeyAnischenko commented 3 months ago

Trying to run Azul's GC Log Analyzer under CheerpJ. Direct link for the jar download.

I copied the jar to my http server, near the index.html with the following content (bad formatting here, see the screenshot below):

<!doctype html>

CheerpJ test

The application loads, displays the UI, then tries to open the gc.log provided (you can use any GC.log available), and then fails to load it, displaying the "java.lang.UnsatisfiedLinkError on java.util.zip.Adler32.updateBytes" messagebox.

Another problem (dupe of https://github.com/leaningtech/cheerpj-meta/issues/105) is app's "File->Open" dialog displays just the empty window with "open file" button, while there are several files in the /app root of my webserver, and I am then unable to close the "open file" dialog.

running the same app the usual way with java8 openjdk "java -jar GCLogAnalyzer2.jar sample-gc.log" works just fine

AlexeyAnischenko commented 3 months ago

azul-churpj-gcla image

index.html + jar + gc log sample: GCLA.zip

epanholz commented 3 months ago

The issue should be resolved with this build: https://cjrtnc.leaningtech.com/3_20240326_462/cj3loader.js

AlexeyAnischenko commented 3 months ago

Confirming that the newer loader version fixes the problem, thx!