-
One of the problems on other platforms (mainly Linux) that I keep running into is not finding JAVA_HOME in spite of setting it in bash.rc by Terminal commands. py5 insists that it needs jdk 17 when most of us are way past that. How can we make it so it will accept what we have installed on our operating system if we tell it where it's located? Is there already a place where we could set the jdk path ourselves? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi @vsquared, maybe you could try to study how Thonny does it, as it has the "environment variables" thing? or perhaps investigate the jpype documentation and ask on their forums? This is hard stuff that I wouldn't want to have to deal with, and that's why I adopted Thonny + our plug-in and that helps my students solve this. I know your intentions are to enrich our community & the py5 project with an experimental editor, but maybe this could be a bit outside our scope here. |
Beta Was this translation helpful? Give feedback.
-
py5 needs Java 17 or later. It doesn't have to be exactly 17. Not every JDK works though, some JDKs are packaged up in a weird way or are missing some components. Sometimes when someone is facing install problems it is helpful to get them to install a specific, known to work JDK to rule out other problems.
Try
This can be done but can be tricky to do it in a way that it will be picked up correctly. For example, in Python when you set an environment variable it just puts it in the dictionary |
Beta Was this translation helpful? Give feedback.
I'll likely release the py5 editor over on Processing, but don't anticipate much of a response. That doesn't change the fact that it is a solid entry level editor that has other applications. It works pretty well on a mac and I've had it running on Linux and Windows but getting all the stars aligned on these other platforms is more work than the average user is likely to do.