# Could not run the sketch error

**URL:** <https://discourse.processing.org/t/could-not-run-the-sketch-error/16730>\
**Category:** Libraries\
**Created:** [December 30, 2019, 4:27pm UTC](https://discourse.processing.org/t/could-not-run-the-sketch-error/16730 "2019-12-30T16:27:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [December 31, 2019, 8:41am UTC](https://discourse.processing.org/t/could-not-run-the-sketch-error/16730/4 "2019-12-31T08:41:39Z")

</div>

> [@"main" as name of method causes "Target VM failed to initialize" error](https://discourse.processing.org/t/main-as-name-of-method-causes-target-vm-failed-to-initialize-error/300):
>
> I discovered a problem when I used the name main for a class method; it made the sketch not run and gave me this error: Usage: PApplet [options] \<class name\> [sketch args] See the Javadoc for PApplet for an explanation. Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help ? Troubleshooting Is this a bug or just me being a noob?

🙂

---

_[View the full topic](https://discourse.processing.org/t/could-not-run-the-sketch-error/16730)._
