# Invalid or corrupt jarfile

**URL:** <https://forum.canton.network/t/invalid-or-corrupt-jarfile/2143>\
**Category:** App Development\
**Tags:** daml, sandbox\
**Created:** [February 23, 2021, 10:07am UTC](https://forum.canton.network/t/invalid-or-corrupt-jarfile/2143 "2021-02-23T10:07:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![janganga](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@janganga](https://forum.canton.network/u/janganga)\
**Post date:** [February 23, 2021, 10:07am UTC](https://forum.canton.network/t/invalid-or-corrupt-jarfile/2143/1 "2021-02-23T10:07:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gary\_Verhaegen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gary_verhaegen/32/81_2.png) [@Gary\_Verhaegen](https://forum.canton.network/u/Gary_Verhaegen)\
**Post date:** [February 23, 2021, 1:52pm UTC](https://forum.canton.network/t/invalid-or-corrupt-jarfile/2143/2 "2021-02-23T13:52:46Z")

</div>

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](https://support.microsoft.com/en-us/windows/show-hidden-files-0320fe58-0117-fd59-6851-9b7f9840fdb2).

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [February 24, 2021, 6:50am UTC](https://forum.canton.network/t/invalid-or-corrupt-jarfile/2143/3 "2021-02-24T06:50:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://forum.canton.network/u/gaurav)\
**Post date:** [January 11, 2024, 1:14pm UTC](https://forum.canton.network/t/invalid-or-corrupt-jarfile/2143/4 "2024-01-11T13:14:48Z")

</div>

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.
