cmu-phil / tetrad

Repository for the Tetrad Project, www.phil.cmu.edu/tetrad.
GNU General Public License v2.0
408 stars 112 forks source link

Nothing happens when choosing a dataset to load on Mac #1710

Closed vlad43210 closed 6 months ago

vlad43210 commented 1 year ago

Hi,

I'm running Tetrad 7.6.0-0 on Mac OS 14 Sonoma. I tried making a data box > File > Load Data, chose my file, but nothing happens when I click "Choose." Any thoughts? I saw there are some security issues about Tetrad not seeing any files, but it is seeing the files, just nothing happens when I select one. I did go into security settings and grant java access to my Documents and Downloads folder.

jdramsey commented 1 year ago

Ah huh! I know the answer to this by now! OK, two things.

  1. Could you switch to Tetrad 7.6.1?

  2. Could you tell me what version of Java you are using? If I'm right, you're using 1.8, and you need to switch to one of the ore recent versions. You can tell by opening up a terminal and typing:

java -version

vlad43210 commented 1 year ago

Thanks! I switched to Tetrad 7.6.1, uninstalled Oracle Java, and got OpenJDK 21.0.1. Now I see the Data Loader screen!

jdramsey commented 1 year ago

Yay!!! :-)

magatz commented 12 months ago

Same problem on Redhat with java openjdk 17.0.9 2023-10-17 LTS and 7.6.1

jdramsey commented 11 months ago

Let me rephrase my previous comment (which I just deleted). The issue comes down to one method in the code, which could be rewritten, though rewriting it would make it incompatible with JDK 1.8. Some people are having difficulty installing a more recent version of the JDK, so we need to check to see if we can do that.

One thing you could try is to install Amazon Corretto's (Open)JDK 17, which is working for others.

magatz commented 11 months ago

thanks! I will give a try since I manage the RedHat server. Will keep you updated here

jdramsey commented 10 months ago

By the way we're going to release version 7.6.2 in a few days under (Corretto) JDK 17; a lot of the outstanding issues will be fixed.

magatz commented 10 months ago

Thanks! I will indeed check!