Skip to content
Discussions/App Development/Invalid or corrupt jarfileForum ↗

Invalid or corrupt jarfile

App Development4 posts1,059 views3 likesLast activity Jan 2024
JA
jangangaOP
Feb 2021

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

GA
Gary_Verhaegen
Feb 2021

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.

CO
cocreature
Feb 2021

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.

GA
gaurav
Jan 2024

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.

← Back to Discussions