Invalid or corrupt jarfile

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 Likes

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.

1 Like

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.