Using SNAP in your Java program

NOTE

This is just a brief and rough introduction for how to use SNAP API in your own Java application.
It should be extended in the future.

Include SNAP dependencies

If you use maven to setup your project you can add the dependencies to SNAP in your pom.xml file. Which maven dependencies are available are best viewed by checking out the SNAP project from senbox-org on GitHub. You can also build the project by building the projects following the How to build SNAP from sources guide.

Example usage of SNAP API

The GitHub repository SNAP Examples provides useful examples. Especially the snap-engine-examples sub-project.

Collecting jar files

If you want to collect jar files to bundle them with your application you can consult thw wiki page How to create a bundle of SNAP jars for the usage on the classpath. But there are also other means to do it with maven. The Apache Maven Dependency Plugin allows to copy specified dependencies to a certain location.