Last Modified October 2, 2026

Adding software_DNA to Eclipse

(Windows / MacOS / LINUX)

  1. Overview

 

To include software_DNA into your Eclipse Project:

  1. in the ".src" folder of your Project, copy the DNA Library (shown below is for the MAC OS - libdna.dylib)

  2. in the ".src" folder, create the sub-directories "com/softworkz/dna"

  3. copy the DNAINT.java file into the "com/softworkz/dna" folder such that the path of the DNAINT file is

    com/softworkz/dna/DNAINT.java

  4. Your project structure should look like the following:
    Android Studio Add to Project
  5. in your application's main source file include in the import section:

    import com.softworkz.dna.*;

  6. to ensure that the DNA library is in the JAVA Path you will need to:

    • in Project Properties -> Java Build Path -> Source -> Native Library Locations
    • specify "src" for the setting
    Android Studio Add Path
  7. your first API Call should be the DNASetCDMPathName() API to set the path for the CDM License file to a read-write directory