From the comment of Fredrik,
I think Indigo requires java 1.6 and Galileo may not support it. Try to
change execution environment to 1.5 and recompile and see if that changes
anything.
Change the execution environment to 1.5 and set JAVA SDK to Java 1.5.
It solves the problem. Thanks