Skip to content
Permalink
Browse files

start fleshing out setup for java wrapper

  • Loading branch information
bogovicj committed Dec 4, 2019
1 parent 2a79d15 commit 5fe4fa93fdeeb003e4265668a8f64c615eb406c6
Showing with 21 additions and 1 deletion.
  1. +21 −1 Documentation/Sphinx/GettingStarted.rst
@@ -51,7 +51,27 @@ and run the following command:
This will install the SimpleElastix which we can then import into our own scripts. If we want to install SimpleElastix into a virtual environment, activate the virtual environment on beforehand and omit :code:`sudo`. If you don't know what a virtual environment is, don't worry about it, it is entirely optional.

# Java
TODO: Pull request welcome.

First, ensure the following directory exists after compilation:

::

${BUILD_DIRECTORY}/SimpleITK-build/Wrapping/Java

If such a directory does not exist, check the Troubleshooting section below.

The `visual guide to SimpleITK in Java <https://itk.org/Wiki/SimpleITK/GettingStarted/A_visual_guide_to_SimpleITK_in_Java>`_ shows you how to create a java project in eclipse. The main steps are:

1. Add the simpleitk jar to classpath (simpleitk-<version>.jar)

2. Set the path to the Native Library
In this case `${BUILD_DIRECTORY}/SimpleITK-build/Wrapping/Java/lib`

After a project is set up, the
`Java elastix example <https://github.com/SuperElastix/SimpleElastix/blob/master/Examples/Java/SimpleElastix.java>`_
and the `Java transformix example <https://github.com/SuperElastix/SimpleElastix/blob/master/Examples/Java/SimpleTransformix.java>`_
show how to use the interface.


# R
TODO: Pull request welcome.

0 comments on commit 5fe4fa9

Please sign in to comment.
You can’t perform that action at this time.