MIDP 1.0 problems

I am trying to build an application for a Nokia 6310i mobile phone, which runs MIDP 1.0. But it can’t be build (I don’t think it is the application which is a “hello world” trial program).

I have installed the J2MEWTK1.0.3_01 and change my JAVA_HOME to a Jdk1.3.1_08 implementation. But it can’t build, it fails with:

Preverifying classes…

Error preverifying class com.covigo.client.view.base.midp.Splash

Class loading error: Truncated class file

BUILD FAILED

Why is this? -How can I get around it? Can I build applications for a Nokia 6310i device (it is present in the device manager)?