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
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