Eclipse SCIFIO ImageJ Project Setup

Tags: #<Tag:0x00007fb87b553418> #<Tag:0x00007fb87b5532b0> #<Tag:0x00007fb87b553170>



I’m about to create a SCIFIO project in Eclipse, and would like to know if someone might have some suggestions how to do this.

At the end, I would like to read/write TIFF and HDF files. So far, I figured out that I need the following packages:

  • scifio-master
  • imagej-common-master,
  • imglib2-master
  • HDF5_Vibez-master

Maybe more is needed? And how should it be combined in Eclipse to create an environment to run the sample files as provided in scifio-tutorials-master (sorry for not attaching the files directly, but this not appowed for new users).

In order to avoid basic mistakes when setting up the project in Eclipse, I look for advice how to do this properly.

Suggestions, tips are very welcome.

Thanks in advance



Hi Jürgen,

The easiest thing to do is to use Maven like SCIFIO does. Start by forking and cloning the SCIFIO project from Github. Instructions here. Then you need to have Maven installed on your computer. Instructions for different operating systems here. Eclipse has good Maven integration, so after you’ve done the cloning and installing, you should be able to open the code in Eclipse as a Maven project, and then build it. Here’s a pull request I made to SCIFIO that adds support for reading a custom file format. Hope this helps :slight_smile:

Best regards,


Hi Richard,

Thanks for the start. I followed your procedure and it works.

I created the fork of scifio in github and downloaded the resulting scifio-master zip file to my PC and uncompressed it. Then I used the Eclipse Import function to import an Existing Maven Project. After this Eclipse did the build and the scifio project was created. So far so good.

But what do I need to do to add another project, e.g. the scifio-tutorials, to it? If I do it the same way, I’m getting two separate projects side by side. But that’s not what I want. I would like to create a main project e.g. “SCIFIO” that includes “scifio-master” and “scifio-tutorials” as sub-projects.

And if I need more packages in future (e.g. HDF5_Vibez), I simply want expand the SCFIO project with more github projects.




The whole purpose of Maven is that you don’t need to compile stuff that you only want to use, without doing any changes. So instead of sub-projects, you simply define them as dependencies.

As I mentioned on the github issue you opened, you should simply define a dependency in your pom.xml for each component that you’re using:


You can take the example-imagej-command as a starting point.

While you told us what you tried, it is still unclear to me what you’d like to achieve. If all you need is:

then you really don’t need to deal with all the source code of scifio and other projects. You usually don’t start assembling a motor from single bolts and screws (and then the car) if your goal is to get from one city to another.


Hi Jan,

I think I got the idea and try to create the project, using the example-imagej-command as a blueprint, modifying it and adding the needed dependencies.

I’ll let you know about the result when I’m done.





here are the results of my tests with dependencies.

First I tried to modify the example-imagej-command example, but without any success. Whatever I did, only “can not find this, can not find that” error messages. So I stopped this exercises and went to the scifio pom.

Into the scifio pom, I added three dependies. Only one for each test.

Test 1 ------------------------------------------------------------------------
Added only the HDF5_Vibez dependency:


This resulted in pom error messages according attached screenshot “scifio pom with HDF5_Vibez dependency”. Assuming that Curtis’ comment “The HDF5 Vibez plugin is not built on SCIFIO” might be the reason for this, I tried to add the scifio-turorials to scifio.

But also not success. First I added the artifactId according the pom of scifio-turorials. As this ended with errors, I deleted the pom- in the artifactId, but also no success.

Test 2 ------------------------------------------------------------------------
Added only the scifio-turorials dependency with artifactId = pom-scifio-tutorials:


Test result as in attached screenshot “scifio pom

with scifio-turorials dependency 1”.

Test 3 ------------------------------------------------------------------------
Added only the scifio-turorials dependency with artifactId = scifio-tutorials:


Test result as in attached screenshot “scifio pom with scifio-turorials dependency 2”.

I really expected at least a positive result with scifio-turorials, as this should be built on SCIFIO.

Does anyone have an idea why it’s not possible to expand scifio with scifio-turorials?




Eclipse doesn’t automatically download Maven dependencies by default, so:

  1. Right click your project in the package explorer
  2. Select Maven > Update Project…
  3. OK the dialog

Let me know if this resolves the missing packages.


Update Project didn’t help. As far as I understand it, is the pom the instance that controls what needs to be downloaded. But as soon as I add a dependency to the pom of scifio, the pom gets the error indication in Eclipse (see attached screenshot).

For me, all the pure scifio stuff (.java and .jar files) is there, but nothing more. It seems that the pom processing stops as soon as the lines of the added dependency are reached.


PS: If I could, I would upload the modified scifio pom. But as new user, I’m not allowed to upload anything else than images. I also tried to put the pom xml into a zip archive, but i’s also not allowed for new users to upload zips.



I just manually increased your user trust level, so in the future you should be able to upload other files as well. For code however, you can simply paste it in your post (between code fences ``` for formatting) instead of uploading, or it’s often the easiest to share it via or as a

Please also make sure you have the ImageJ Maven repository configured in your pom.xml:



Yes, the repository is, must be there, as I used the original scifio pom, and just added the scifio-tutorials at the end (see below).

<?xml version="1.0" encoding="UTF-8"?> 4.0.0
	<relativePath />


<name>SCIFIO Core</name>
<description>SCIFIO is a library for scientific N-dimensional image I/O.</description>
		<name>Simplified BSD License</name>

		<name>Curtis Rueden</name>
		<name>Mark Hiner</name>
		<name>Johannes Schindelin</name>
		<name>Andrea Ballaminut</name>
		<name>Gabriel Einsdorf</name>
		<name>Henry Pinkard</name>
		<name>Ray Plante</name>
		<name>Daniel Seebacher</name>
		<name>Richard Domander</name>

		<name>ImageJ Forum</name>

	<system>GitHub Issues</system>
	<system>Travis CI</system>


	<license.copyrightOwners>SCIFIO developers.</license.copyrightOwners>
	<license.projectName>SCIFIO library for reading and converting scientific file formats.</license.projectName>


	<!-- NB: Deploy releases to the ImageJ Maven repository. -->


	<!-- SCIFIO dependencies -->

	<!-- ImageJ dependencies -->

	<!-- ImgLib2 dependencies -->

	<!-- SciJava dependencies -->

	<!-- Third-party dependencies -->

	<!-- Test scope dependencies -->

	<!-- scifio turorials dependencies -->



What’s the reason you want one project to include both scifio and scifio-tutorials? As far as I can tell, declaring a dependency to both creates a circular dependency, because scifio-tutorials is already dependant on pom-scifio. Thus having both is not possible.


There is no real reason to include both, scifio and scifio-tutorials. I did it just as a cross-check to identify maybe basic problems, on the way to find out why it’s not possible to have one project that includes scifio and HDF5_Vibez.

But I think the answer was already given by Curtis, because “The HDF5 Vibez plugin is not built on SCIFIO”. Taking this into account, I assume the best way forward is to take scifio as it is, and to investigate how to make use of HDF5_Vibez on top of it “the manual way”, means not using Maven. For this, I will contact @kmdouglass from the HDF5_Vibez project.

Hence, there is no more need to follow-up the Maven and pom issues.

Thanks to ALL for taking the time to provide valuable comments!



No, it does. But if you modify a pom.xml, especially outside of Eclipse, you may need to use the “Update Project” technique that @rimadoma described to get your Eclipse project back in sync with the Maven POM.

A parent POM is not a dependency in the Maven sense. So scifio and scifio-tutorials are not co-dependent. However, scifio-tutorials is not intended to be consumed as a dependency. You are supposed to take the source code you need from that project, and use it as a starting point for your own project.

You certainly could create a project that depends on both scifio and HDF5_Vibez. But they have nothing to do with one another. You could invoke each of them as libraries, though, as needed for your project.

I strongly advise any project you build to use Maven. The HDF5_Vibez project uses Maven. The scifio project uses Maven. You can consume either or both of them as dependencies using Maven.

Extend pom-scijava. Do not extend pom-scifio. Note that the SCIFIO tutorials are out of date, and need adjustment to extend pom-scijava instead of pom-scifio. Edit: I have now updated the scifio-tutorials projects to extend pom-scijava as they should.