Skip to content
CCPEDIAby Unity Nodes
App Development

Invalid or corrupt jarfile

4 posts1,091 views3 likesLast activity Jan 2024

  1. jangangaOP 2

    I got this error after submit command ‘daml start’ on first example ‘create-daml-app’.

    Waiting for sandbox to start:
    Error: Invalid or corrupt jarfile …\AppData\Roaming\daml\sdk\1.10.0\daml-sdk\daml-sdk.jar

    windows 10, Java 8
    Thank you

  2. Gary_Verhaegen 1

    Hi @janganga,

    I am not in a position to reproduce this issue (and I have no idea how it could have happened) at the moment, but here is something you may want to try:

    1. Move the folder AppData/Roaming/daml/sdk/1.10.0 to your Desktop.
    2. In a terminal, run daml install 1.10.0.

    If you have trouble finding the sdk folder, it should be under C:\Users\YourName\AppData\Roaming\daml\sdk. However, AppData is I believe hidden by default so you may have to turn on the option to show hidden folders.

  3. cocreature

    I recommend rerunning the installer. It will ask you whether you want to replace the existing installation which you can confirm. That should hopefully remove whatever corrupted installation you ended up with.

  4. gaurav

    hello,
    I tried your provided method,
    not able to resolve the error.
    it shows 2 errors together,
    Error: Invalid or corrupt jarfile C:\Users\username\AppData\Roaming\daml\sdk\2.8.0\canton\canton.jar
    Port file was not written to ‘C:\Users\username\AppData\Local\Temp\extra-dir-557367687575\sandbox-portfile’ before process
    exit with ExitFailure 1
    kindly help me out for this error.