I know this is 5y old, but it is astounding how few online code examples actually work to go from JSON to CSV.
Although this does look like a path/jar issue in the stacktrace, it was in the source, as the OP pointed out. But they didn't explain in a way that is useful.
This is from an API, and will cause the error:
The above failed. When I simply wrapped the entire contents in a pair of brackets ("[ ...]"), though, it was all a single line, not discernable as CSV.
However, when I trimmed the characters before AND after the existing outer brackets, like this:
joy.
No header values, but that is a separate issue. To help those running recent java, here is a snippet that works:
HTH
I was on here for a million years when it was the java ranch... starting over.. oh well!