Mercurial > hg > orthanc-java
view Samples/Dcm4Che/NOTES.txt @ 72:ff6e57d0d474
updated instructions for samples
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 21 Aug 2025 16:58:24 +0200 |
parents | 118adbad648f |
children |
line wrap: on
line source
This sample plugin shows how to combine Orthanc with the dcm4che library. To run this sample Java plugin: (1) Make sure to build the C++ plugin: # cd ../../Plugin/ # mkdir Build # cd Build # cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_SYSTEM_ORTHANC_SDK=OFF # make -j4 (2) Make sure to build the Java wrapper: # cd ../../JavaSDK/ # mkdir Build # cd Build # cmake .. -DUSE_SYSTEM_ORTHANC_SDK=OFF -DCMAKE_INSTALL_PREFIX=.. # make -j4 install (3) Compile the Java plugin using Maven: # cd ../../Samples/Dcm4Che # mvn compile package (4) Start Orthanc: On Ubuntu 20.04 or 22.04 (replace "mainline" with the version of the Java plugin for Orthanc, cf. "../global.properties"): # LD_LIBRARY_PATH=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/ \ ORTHANC_JAVA_VERSION=mainline \ Orthanc ./configuration.json (5) Send an arbitrary DICOM file to Java: # curl http://localhost:8042/dcm4che-parse --data-binary @sample.dcm