Invalid or corrupt jarfile
- 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.jarwindows 10, Java 8
Thank you - 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:
- Move the folder
AppData/Roaming/daml/sdk/1.10.0to your Desktop. - In a terminal, run
daml install 1.10.0.
If you have trouble finding the
sdkfolder, it should be underC:\Users\YourName\AppData\Roaming\daml\sdk. However,AppDatais I believe hidden by default so you may have to turn on the option to show hidden folders. - Move the folder
- 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.
- 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.