Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    fresherFish
    @FishMuyao_twitter
    list (resource)
    music(resource)
    save(resource)
    script(resource)
    resource(resource)
    @alexp-sssup
    fresherFish
    @FishMuyao_twitter
    wait a sec for the files
    fresherFish
    @FishMuyao_twitter
    the Game
    js and html
    Alessandro Pignotti
    @alexp-sssup
    The problem is that the resources are loaded using local paths from the current directory (cwd). The support for cwd in CheerpJ is not complete. The simplest solution is to change your code to load resources from an explicit path starting from:/app/, which represents the root of the server. If you can't modify the code you can report a bug here: https://github.com/leaningtech/cheerpj-meta/issues, please be aware that we currently are not able to prioritize bugs for non-commercial users.
    fresherFish
    @FishMuyao_twitter
    like 'D:\Kys-Java\Kys-Java\app\kysjva.0.8.146.jar'?
    or '/app/kysjva.0.8.146.jar'?
    Alessandro Pignotti
    @alexp-sssup
    I am not referring to the jar, but to the resources
    /app/ is part of CheerpJ virtual file systems and maps to the root of the web server. See here for more info: https://github.com/leaningtech/cheerpj-meta/wiki/File-System-support
    fresherFish
    @FishMuyao_twitter
    ok,I know.(sorry for that ,I'm a Pythonista)
    ComFreek
    @ComFreek
    Which Java versions does CheerpJ support?
    I am getting "Unsupported LLVM generation for opcode ba" in the same way as reported here: leaningtech/cheerpj-meta#65
    Does CheerpJ still only support Java 8?
    Alessandro Pignotti
    @alexp-sssup
    @ComFreek CheerpJ only supports Java8, but that message is actually non-critical. Although the LLVM based codegen cannot deal with that opcode, the legacy codegen can. Your code will likely just work.
    3 replies
    ComFreek
    @ComFreek
    Is there a way to cache compilations of specific dependencies? E.g. I have dependencies on a number of Scala libraries (as JARs) that are pretty big.
    You can use the --work-dir option. This page also documents the -j option.
    ComFreek
    @ComFreek
    wonderful
    Richard Kennard
    @kennardconsulting
    Hi guys! Thanks for all the wonderful work you do with CheerpJ. I have a CheerpJ-converted applet that has been working for years. Recently, it stopped working in Chrome (still works in Edge and Firefox). Both CheerpJ 1.4 and 2.1 display the same problem. Can you please take a look?
    (you may need to click 'Start New')
    It works great in Edge and Firefox. Used to work great in Chrome too. But now Chrome displays a NullPointer in the console
    Alessandro Pignotti
    @alexp-sssup
    @kennardconsulting Most likely you are encountering this bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1138799
    Latest Chrome has a broken a feature require to communicate between the page and the applet
    I just reported the bug this morning and I hope they will fix the issue soon, there is not much we can do in the short term
    Richard Kennard
    @kennardconsulting
    Thanks for the quick response! Okay thanks - have starred the issue
    Wei Ouyang
    @oeway
    Hi, we are compiling ImageJ2 and found that CheerpJ failed to start, but if I edit the jar file META-INF/MANIFEST.MF and remove the Class-Path, it works. Is this a bug?
    @alexp-sssup
    Alessandro Pignotti
    @alexp-sssup
    @oeway Class-Path in manifest should be supported. Please check that the manifest does not references non existing JARs. As usual you can report a bug with a minimal reproducible test case
    Wei Ouyang
    @oeway
    Ok, it appears that there are many non-exists jars shown in the Class-Path, are you sure that it will cause issue if they don't exist?
    Alessandro Pignotti
    @alexp-sssup
    I don't recall by memory how the logic is implemented, but cheerpjfy.py does check if the dependency jars exists, to avoid accidental mistakes when passing --deps as a command line option.
    Also, you said "CheerpJ fails to start", what does this mean exactly? I am assuming you are referring to the cheerpjfy.py script. Or do you mean at runtime?
    Wei Ouyang
    @oeway
    I see, when it fails, it generates many 404 jar not found error, and crashes at:
    loader.js:2333 Uncaught (in promise) Comparison method violates its general contract!
    (anonymous)    @    loader.js:2333
    Promise.catch (async)        
    cheerpjRunMain    @    loader.js:2333
    startImageJ    @    (index):65
    (anonymous)    @    (index):72
    Sorry I was not clear, the cheerpjfy process works
    It's just failed when loading into the website
    Alessandro Pignotti
    @alexp-sssup
    I have never seen anything like this. Can you forge a simpler test case than the whole IJ2
    Wei Ouyang
    @oeway
    Not sure how to do it, I am trying some scripts to simply remove all the Class-path from jar file.
    Will investigate more
    Alessandro Pignotti
    @alexp-sssup
    @kennardconsulting The Chrome bug which broke your applet should be now fixed. The fix will be included in Chrome 87
    For reference, these are the bug reports: