开发者

Applet Code runing well in eclipse environement but not in the browser

开发者 https://www.devze.com 2023-03-15 12:29 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消