# How can i resolve Runtime Error?

**URL:** https://discourse.processing.org/t/how-can-i-resolve-runtime-error/40710
**Category:** Coding Questions
**Created:** [January 25, 2023, 7:38pm UTC](https://discourse.processing.org/t/how-can-i-resolve-runtime-error/40710 "2023-01-25T19:38:42Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [January 25, 2023, 9:41pm UTC](https://discourse.processing.org/t/how-can-i-resolve-runtime-error/40710/2 "2023-01-25T21:41:55Z")

</div>

In order to “ignite” a PApplet instance I recommend method [**runSketch()**](http://processing.github.io/processing-javadocs/core/processing/core/PApplet.html#runSketch-java.lang.String:A-processing.core.PApplet-).

> [@Cannot Export DXF from PWindow?](https://discourse.processing.org/t/cannot-export-dxf-from-pwindow/36767/2):
>
> Check out these 2 examples about using [runSketch()](http://processing.github.io/processing-javadocs/core/processing/core/PApplet.html#runSketch-java.lang.String:A-processing.core.PApplet-) + [ARGS\_SKETCH\_FOLDER](http://processing.github.io/processing-javadocs/core/processing/core/PApplet.html#ARGS_SKETCH_FOLDER) + [sketchPath()](http://processing.github.io/processing-javadocs/core/processing/core/PApplet.html#sketchPath--): [Size method for intial window not working when more windows are are added. - Processing 2.x and 3.x Forum](http://forum.Processing.org/two/discussion/16457/size-method-for-intial-window-not-working-when-more-windows-are-are-added#Item_1)

---

_[View the full topic](https://discourse.processing.org/t/how-can-i-resolve-runtime-error/40710)._
