Example project

This page contains a simple Maven Java Project showing how the Java API for Cryptshare can be used.

Java API Version 5.0.1

Please note, that the Maven setup is configured to use the API version 5.0.1. Make sure you have the corresponding API version installed in the used repository.

Error Messages

If you encounter problems during compilation or running the project, then you can find some hints regarding optionally missing libraries here: Java 9+ support.

How to import the project to your favorite IDE

IntelliJ

  1. Download the project zip from this page and unpack it to your workspace.

  2. In IntelliJ select 'File' → 'New' → 'Project from Existing Sources'

    23953544
  3. In the next dialog select the example-project directory.

    23953542
  4. In the next dialog select 'Import project from external model' and 'Maven'.

    23953541
  5. Follow the remaining steps of the wizard by clicking 'Next'.

Eclipse

  1. Download the project zip from this page and unpack it to your workspace.

  2. In Eclipse, select 'File' → 'Import'

    23953540

  3. Select 'Existing Maven Projects'

    23953539

  4. Click 'Browse', select the project directory and click 'OK'.

    23953546
  5. Click 'Finish'