I am attempting to parse a NITF file using the Java API for daffodil-2.0.0-rc2. The example code in the daffodil source code uses JDOMInfosetOutputter as an argument to the DataProcessor.parse() method. My code does not compile as the JDOMInfosetOutputter class does not exist. This was confirmed upon examination of the daffodil-japi.jar file.
I then built the daffodil-japi from source code. Not being familiar with scala and folder layout I assume the resultant JAR file (daffodil-japi_220.127.116.11.0.0-SNAPSHOT.jar) is located in daffodil-japi/target/scala-2.11? Using this JAR file in my application overcame the compilation errors. However, running the application resulted in a NoClassDefFoundError: /edu/illinois/ncsa/daffodil/infoset/InfosetOutputter. Surely the class path should be /edu/Illinois/ncsa/daffodil/japi/infoset/InfosetOutputter?
It also suggests the binary distribution of RC2 is not consistent with the codebase?
InfosetOutputter and all associated classes were added since rc2. You will need to use the complete 2.0.0 snapshot release to get this functionality. There are multiple jars, and you must have all of them. We are very close to having an rc3, but it is not quite done.
Powered by a free Atlassian Confluence Open Source Project License granted to NCSA OpenSource. Evaluate Confluence today.