Skip to content

Setting up Tetrad in IntelliJ IDEA

Yasuhiro Shimodaira edited this page Oct 6, 2022 · 33 revisions

Setting up in the current IntelliJ IDEA is rather trivial and can probably be figured out without help.

Creates Project by cloning from GitHub

  1. create a new project from project from version control (In the GUI, it's File-->New-->Project from Version Control...)
  2. in the URL box type the web address of the Tetrad GitHub page (https://github.com/cmu-phil/tetrad).
  3. Specify version control ad "Git" and give the directory where the project should be checked out to (the default is usually good)
  4. Click Clone. Intellij will check out and set up the project perfectly in most cases.

Downloads from Artifact Repositories

(optional) proxy setting could be required. google or check maven website if necessary.

  1. in the Maven tab on the right of the screen, under Tetrad Project (root), double click "clean".
  2. When that's finished, double click "compile".
  3. That will download all of the dependencies from Maven and compile the project.

Runs GUI App

  1. in the Navigate Menu, select "Class" and select "Tetrad" (in the edu.cmu.tetradapp.Tetrad package, not the other one)
  2. when the code for that class appears, right click (on a Mac two-finger click) on the name of the class, "Tetrad",
  3. from the popup menu select "Run 'Tetrad.main()'".
  4. if configuration window appear, select "tetrad-gui" in class path setting(-cp).
  5. And your off to the races.