tabreturn / thonny-py5mode

A py5 plug-in for Thonny
Do What The F*ck You Want To Public License
23 stars 8 forks source link

Use py5/jpype to check/set JAVA_HOME #26

Closed tabreturn closed 4 months ago

tabreturn commented 2 years ago

"py5 can check if JAVA_HOME exists, and if not, see what jpype.getDefaultJVMPath() returns? If that is not version >= 17, jpype will not be able to start py5. Instead of failing, check in the location where the Python JDK library puts the installs. If Java 17 is found there, py5 can direct jpype to that location. If it isn't found, display a suitable error message."

Call jpype.getDefaultJVMPath() so it isn't necessary to set JAVA_HOME?