J2ME problem: preverify: Illegal constant pool index

J

John Goche

Hello,

I am getting started with some J2ME programming. I have been following
the instructions
from the J2ME book by Martin J. Wells. I installed the following files
on WinXP:

jdk-1_5_0_06-windows-i586-p.exe
j2me_midp-1_0_3-fcs-src-b26-win-19_sep_2001.zip (unzipped under
C:\j2me)

The environment variables are configured as follows:
My Computer -> Properties -> Advanced -> Environment Variables:

Path:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program
Files\Java\jdk1.5.0_06\bin;C:\j2me\midp1.0.3fcs\bin;C:\Program
Files\Vim\vim64

CLASSPATH:
C:\Program Files\Java\jdk1.5.0_06\lib;C:\j2me\midp1.0.3fcs\classes

MIDP_HOME:
C:\j2me\midp1.0.3fcs

When I compile a simple hello world application with:

javac Hello.java

I get my command prompt back with no errors, but then when I preverify
with:

preverify -cldc -classpath %MIDP_HOME%\classes;. -d . Hello

I get the following error message:

Error preverifying class Hello
Class loading error: Illegal constant pool index

Any idea where the problem might be?

Thanks,

JG
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top