i'm stucked on this p开发者_如何学编程oint since 3 days and i'm out of idea. If someone could help, my week will start really well !
I'm writing a java applet.
- Under eclipse environement it works well.
- I build the jar (with all the dependencies aggregated) and launch it on a browser (chrome, firefox, ie ...). The code below does not work anymore because it returns an empty list:
Iterator iter = ImageIO.getImageReadersByFormatName("DICOM");
It seems that the Image Readers that claim to be able to decode the DICOM format are available under eclipse environement but not under browser environement ... I don't think it's a security exception as i have no such error (I have no exception, problem is the returned list is empty).
Thanks in advance for any clue ...
I've found the solution. A spi image reader was not found into the manifest. It was because the dependencies jar files were aggregated into my jar, leading my manifest to be overriden by another. Now I don't aggregate my jar anymore and it's ok, my manifest stay safe and the spi image reader is found.
精彩评论