On 19 nov. 2010, at 18:27, Sebastian Klein wrote:
> Olivier Croquette wrote:
>> Hi !
>> When I call this code from JOSM :
>> String[] formats = ImageIO.getReaderFormatNames();
>> for (String f:formats) {
>> System.out.println(f);
>> }
>> It outputs "tiff" (lowercase, other variants like "tif", "TIF" and "TIFF"
>> are missing).
>> When I run the same code a simple-hello-world-like program, it doesn't.
>> I tried the -verbose option of the Java VM, and it gives me :
>> [Loaded com.sun.imageio.plugins.tiff.TIFFImageReaderSpi from
>> /Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents/Classes/classes.jar]
>> The question is : what in JOSM causes the loading of this class ?
>
> Google sais this class comes from Java Advanced Imaging (JAI) which is loaded
> by the ImportImagePlugin. Hope this helps...
Thanks Sebastian, however I have the problem even when ImportImagePlugin is not
loaded.
More strangely, I have this bad TIFF handler issue when I start JOSM from the
command line, but when I start it from Eclipse (same JAR), everything works as
expected. I am investigating further.
_______________________________________________
josm-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/josm-dev