Search code examples
gwt

Unrecognized image file format for .PNG images gwt compilation failed


I am using gwt 2.1.0 ClientBundle for ImageResource, i have .png transparent images i am getting the follwing issue.

It is not consistently coming it's working in some machines and not in some machines

Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator Preparing method getFlightFilename319 Adding image 'com.delta.acs.snapp.gates.web.client.resources.FlightImages.getFlightFilename319' [ERROR] Unrecognized image file format [ERROR] Generator 'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' threw an exception while rebinding 'com.delta.acs.snapp.gates.web.client.resources.FlightImages'


Solution

  • I believe this has to do with the version of Java installed on the machines. Make sure your machines have a somewhat current version of Java 1.6.0, preferably 1.6.0_25 or greater. Upgrade one of your machines to a newer version of java and see if that resolves the issue.