# Linking Fiji with ITK

**URL:** <https://discourse.itk.org/t/linking-fiji-with-itk/4186>\
**Category:** Beginner Questions\
**Tags:** python\
**Created:** [June 6, 2021, 9:08pm UTC](https://discourse.itk.org/t/linking-fiji-with-itk/4186 "2021-06-06T21:08:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alrojo](https://discourse.itk.org/user_avatar/discourse.itk.org/alrojo/32/2114_2.png) [@alrojo](https://discourse.itk.org/u/alrojo)\
**Post date:** [June 6, 2021, 9:08pm UTC](https://discourse.itk.org/t/linking-fiji-with-itk/4186/1 "2021-06-06T21:08:35Z")

</div>

In TUTORIAL/00\_setup.ipynb I cannot seem to make SimpleITK use my Fiji.app or ImageJ installation

For the following code snippet:

```
# Retrieve an image from the network, read it and display using the external viewer
image_viewer = sitk.ImageViewer()
# Uncomment the line below to change the default external viewer to your viewer of choice and test that it works.
#image_viewer.SetApplication('/Applications/ITK-SNAP.app/Contents/MacOS/ITK-SNAP')

image_viewer.Execute(sitk.ReadImage(fetch_data("SimpleITK.jpg")))

```

I get the following error

```
RuntimeError: Exception thrown in SimpleITK ImageViewer_Execute: ../../Code/IO/src/sitkImageViewer.cxx:620:
sitk::ERROR: No ImageJ/Fiji application found.

```

I am running Ubuntu 20.04, using the most recent version of anaconda and python 3. I have downloaded [Fiji: ImageJ, with "Batteries Included"](https://fiji.sc/#download) and unzipped it to my /home/username/ I have also run the command sudo apt-get install imagej. How do I link this application to ITK?

---

<div class="post-metadata">

**Author:** ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)\
**Post date:** [June 6, 2021, 11:26pm UTC](https://discourse.itk.org/t/linking-fiji-with-itk/4186/2 "2021-06-06T23:26:03Z")

</div>

Hello @alrojo,

Welcome to SimpleITK!

Please see the [answer to your question](https://simpleitk.readthedocs.io/en/master/faq.html#why-isn-t-fiji-or-imagej-found-by-the-show-function-runtimeerror-exception-thrown) in the toolkit’s FAQ.

---

<div class="post-metadata">

**Author:** ![alrojo](https://discourse.itk.org/user_avatar/discourse.itk.org/alrojo/32/2114_2.png) [@alrojo](https://discourse.itk.org/u/alrojo)\
**Post date:** [June 8, 2021, 4:44am UTC](https://discourse.itk.org/t/linking-fiji-with-itk/4186/3 "2021-06-08T04:44:43Z")

</div>

Thanks! putting Fiji.app in ~/bin worked
