Cause and Solution of Invalid File Format Exception in JAVA
Read this post on bugfinding.blogspot.com