I'm using JDT (Java DICOM Toolkit) "http://wiki.trispark.com/dashboard.action" for reading a DICOM file using the following code, but getting an error in the following:
How can I solve this problem?
Greg Charles wrote:You declare fin inside a try block, so it's out of scope before you use it. You need to declare it outside the try, though you can set the value inside the try block as you do now. Note that fin will be null after the try-catch if there is a FileNotFoundException. You might want to do something about that as well.
Yes, exactly correct GReg, I didn't notice.
And, now, getting as output: Unable to find key file 'jdt.key' in classpath
I think this is due that the JARS I'm using are commercial and need a key for the evaluation version of the product.