Lajtovo Lajtovo - 3 months ago 27
Java Question

How to import dcm4che library to java project?

I am trying to import

dcm4che
library to my java project, because I want to implement a really simple application which will be able to use this library. (https://github.com/dcm4che/dcm4che)

I tried to import this library using Eclipse, IntelliJ and NetBeans. I did some magic with maven (mvn install). And I don't know how to use it. How to begin. Yes, I did use google a lot. I am a beginner in software development so maybe there is a quick and simple solution which I don't know about.

Answer

1) I downloaded previous version of dcm4che library using this commends:

svn co https://dcm4che.svn.sourceforge.net/svnroot/dcm4che/dcm4che2/trunk/dcm4che2
mvn install assembly:assembly

2) I created a project by importing existing sources (New > Open > Project > From existing sources)

3) I added the dependency to pom.xml

<dependency>
  <groupId>dcm4che</groupId
  <artifactId>dcm4che−core</artifactId
  <version>2.0.30−SNAPSHOT</version>
</dependency>