You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: py5_resources/py5_module/py5/__init__.py
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -128,9 +128,16 @@
128
128
print(debug_info, file=sys.stderr)
129
129
raiseRuntimeError("py5 is unable to start Java 17 Virtual Machine")
130
130
131
-
ifJClass("py5.util.CheckHeadless")().test():
131
+
try:
132
+
ifJClass("py5.util.CheckHeadless")().test():
133
+
raiseRuntimeError(
134
+
"py5 is unable to run correctly in headless mode. "
135
+
"Make sure you are running in a graphical environment and that your Java Virtual Machine is not a Headless JVM."
136
+
)
137
+
except:
132
138
raiseRuntimeError(
133
-
"py5 is unable to run correctly in headless mode. Make sure you are running in a graphical environment and that your Java Virtual Machine is not a Headless JVM."
139
+
"Unable to instantiate Java class py5.util.CheckHeadless. "
140
+
"If you are using PyInstaller right now, please check that all of py5's jar files are included in your package."
0 commit comments