[josm-dev] TIFF support
Olivier Croquette
ml at ocroquette.de
Sun Nov 21 10:47:58 GMT 2010
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.
More information about the josm-dev
mailing list