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
459 stars 21 forks source link

Issue with running the example #177

Closed anusurendra closed 8 months ago

anusurendra commented 8 months ago

Hi,

I am trying to run the TextDemo.jar example. I am not able to run it


<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>CheerpJ test</title>
    <script src="https://cjrtnc.leaningtech.com/3.0rc2/cj3loader.js"></script>
  </head>
  <body>
    <script>
      (async function () {
        await cheerpjInit();
        cheerpjCreateDisplay(800, 600);
        await cheerpjRunJar("/var/www/compLiMet/public_html/dev_site/VaLID/TextDemo.jar");
      })();
    </script>
  </body>
</html>

I am also attaching a screenshot of the error. CheerpJ

alexp-sssup commented 8 months ago

cheerpjRunJar takes paths as in the CheerpJ virtual filesystem. You have instead used a path on your local system.

Please follow the tutorial step by step. https://labs.leaningtech.com/cheerpj3/getting-started/Java-app

anusurendra commented 8 months ago

Hi,

I followed the instructions and now I am getting the following issues (screenshots attached). The code is written in VSCode and when I compile it in VSCode it runs without errors. Not sure why I get this error.

CheerpJerror1 CheerpJerror2

alexp-sssup commented 8 months ago

There is no useful information on these screenshots. I do notice some logging that might suggest that the page is interactive with the CheerpJ private c.html iframe. Please make sure the page is not breaking the iframe and that you have no extensions installed.

I would recommend taking a good look at the exception trace. You might find useful information there.

Consider joining our Discord for support, there is most likely some mistake in the way CheerpJ is used, no actual bug.

https://discord.gg/X9ruPkchM5