# Error in installation - error while trying to create a new sketch

**URL:** <https://discourse.processing.org/t/error-in-installation-error-while-trying-to-create-a-new-sketch/39180>\
**Category:** Processing\
**Created:** [October 9, 2022, 4:07pm UTC](https://discourse.processing.org/t/error-in-installation-error-while-trying-to-create-a-new-sketch/39180 "2022-10-09T16:07:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melchiors](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@Melchiors](https://discourse.processing.org/u/Melchiors)\
**Post date:** [October 9, 2022, 4:07pm UTC](https://discourse.processing.org/t/error-in-installation-error-while-trying-to-create-a-new-sketch/39180/1 "2022-10-09T16:07:45Z")

</div>

I’m trying run processing, but the program doesn’t open. Attached the picture with the errors that occurs.

 ![error](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/c/7/c7427550c3471f47a3f93dd6093277a81ce659b9.jpeg)  
I’m using it at Windows 10.  
I try to use Processing 4.0.1 and 3.5.4, installed in Program Files and in Documents, with Java version 8 updates 301 and 341.

Please, could anyone help me?

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [October 10, 2022, 7:47am UTC](https://discourse.processing.org/t/error-in-installation-error-while-trying-to-create-a-new-sketch/39180/2 "2022-10-10T07:47:58Z")

</div>

Hi @Melchiors,

Welcome to the forum! 😉

It seems that it’s a permission error with the `Temp` or `processing` folder. You can try taking ownership of the folder:

> **[Fix: Access is Denied Error on Windows 10](https://windowsreport.com/access-is-denied-windows-10/)**
>
> Access is denied? Take the matter into your hands and fix this Windows 10 error by taking ownership of the problematic directory. Here's how to do it.

I doesn’t work every time you try to run the sketch?

Also can you try running this piece of code:

```java
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

try {
  Path tmpDir = Files.createTempDirectory("tmpDir");
  System.out.println(tmpDir.toString());
  Files.delete(tmpDir);
}
catch (IOException e) {
  e.printStackTrace();
}

```

(it should create a temporary file and print it’s path)

From:

> <https://stackoverflow.com/questions/617414/how-to-create-a-temporary-directory-folder-in-java/60206442#60206442>
