# \[Solved\] Can't run py5 sketch : Fatal error detected by the Java Runtime Environment

**URL:** <https://discourse.processing.org/t/solved-cant-run-py5-sketch-fatal-error-detected-by-the-java-runtime-environment/46329>\
**Category:** py5\
**Created:** [May 5, 2025, 1:31pm UTC](https://discourse.processing.org/t/solved-cant-run-py5-sketch-fatal-error-detected-by-the-java-runtime-environment/46329 "2025-05-05T13:31:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [May 5, 2025, 5:02pm UTC](https://discourse.processing.org/t/solved-cant-run-py5-sketch-fatal-error-detected-by-the-java-runtime-environment/46329/4 "2025-05-05T17:02:05Z")

</div>

Not on MacOS, but on Garuda Linux. But maybe these links might help you somehow: 🙏

> [@Java library problems](https://discourse.processing.org/t/java-library-problems/45377/4):
>
> Sometimes we do need drastic measures! Nonetheless, I have py5 working w/ a regular Oracle’s JDK system-wide installation on Win10: \>java -version java version “21.0.2” 2024-01-16 LTS Java™ SE Runtime Environment (build 21.0.2+13-LTS-58) Java HotSpot™ 64-Bit Server VM (build 21.0.2+13-LTS-58, mixed mode, sharing) \>where javac C:\Program Files\Java\jdk-21\bin\javac.exe C:\Program Files\Common Files\Oracle\Java\javapath\javac.exe \>echo %JAVA\_HOME% C:\Program Files\Java\jdk-21 …

> **[MemoryError when importing py5 · py5coding/py5generator · Discussion #610](https://github.com/py5coding/py5generator/discussions/610#discussioncomment-12291385)**
>
> Hi, I am struggling to get py5 running on my laptop running EndeavourOS. I am using venv, installed java using install-jdk (Installed 17 as shown in the docs), py5 installed as py5\[extra\]. When imp...

---

_[View the full topic](https://discourse.processing.org/t/solved-cant-run-py5-sketch-fatal-error-detected-by-the-java-runtime-environment/46329)._
