Preverify Blues/Nightmare!

Hi There,

I am trying to run a program with complete J2ME Environment.

The Midlet program gets compiled very well. Hell broke loose, when I am trying to use 'preverify' MIDP command.

Here is the Error I am facing:-

D:\J2MEWTK\apps>preverify FirstMIDlet

Error preverifying class FirstMIDlet

Class loading error: Bad major version number

Here is my PATH & CLASSPATH which had been set/reset after intense R&D at various Web resources! But, still there is no hope!:(

D:\J2MEWTK\apps>echo %path%

C:\WINNT;C:\WINNT\System32;C:\WINNT\System32\Wbem;D:\jdk1.4\bin;D:\j2sdkee1.3\bin;D:\tomcat-3.2.2bin;D:\tomcat-3.2.2\ant-1.3bin;

D:\mysql\bin;D:\J2mewtk\cldc\bin\win32;D:\J2mewtk\midp\bin;

D:\J2MEWTK\apps>echo %classpath%

D:\jdk1.4\lib\tools.jar;D:\jdk1.4\lib\dt.jar;D:\jdk1.4\lib\htmlconverter.jar;

D:\tomcat-3.2.2\lib\servlet.jar;D:\tomcat-3.2.2\lib\webserver.jar;

D:\tomcat-3.2.2\lib\jasper.jar;D:\tomcat-3.2.2\classes;D:\tomcat-3.2.2\ant-1.3\lib\parser.jar;

D:\tomcat-3.2.2\ant-1.3\lib\jaxp.jar;D:\tomcat-3.2.2\ant-1.3\lib\ant.jar;D:\mysql\mm.mysql-2.0.4mysql.jar;

D:\J2mewtk\cldc\bin\common\api\classes;D:\J2mewtk\midp\classes;.;

What might be the reason for it? Is because of Jdk1.4 beta I am using? Or, still PATH/CLASSPATH has to be 'fine-tuned'?

Please mail to my ID given below.

Thanks for your patience. Bye!!

Sunil

sunil.anala@wipro.com

[1525 byte] By [sunilonline] at [2007-9-26 1:56:58]
# 1

Hi, you said that you were using SDK 1.4 beta. I've read somewhere that it is recommended that you use SDK 1.3.* for J2ME.

I would also recommend that you switch back to SDK 1.3.*. The following are reasons that I would recommend the above:

- SDK 1.4 is still in the beta stage. Therefore, it is not really that stable to use yet.

- Most of the software you are using were written with SDK 1.3 or to work with JRE 1.3 not with 1.4

- Personally I've encountered this problem before with SDK 1.4. When I reinstalled everything with SDK 1.3. All worked fine.

axlrose82

axlrose82 at 2007-6-29 3:12:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Hi axlrose82,Thanks for your reply. But, are you definitely sure that, the said problem is because of ONLY Jdk1.4 beta?Can you please give me some kind of links or resource to confirm it?Please respond for this one too. Bye! Sunil
sunilonline at 2007-6-29 3:12:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
Can't really give you the links cus what I've read is from magazines and books from library.But well as I mentioned in my earlier post, it is also through experience that I found SDK 1.4 to be the problem.axlrose82
axlrose82 at 2007-6-29 3:12:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

Hi axlrose82,

But the source at Java site says this:

Q. What are the system requirements for the J2ME Wireless Toolkit?

A. The following environment is required in order to install and run the J2ME Wireless Toolkit:

Operating system: Microsoft Windows 98 Second Edition, Windows NT 4.0, or Windows 2000

Java 2 Standard Edition, version 1.3.0 or higher:

Development environment - Java 2 SDK Standard Edition, version 1.3.0 or higher (about 30 MB, http://java.sun.com/j2se/1.3/download-windows.html)

Runtime environment - Java 2 Runtime Environment, version 1.3.0 or higher (about 5 MB, http://java.sun.com/j2se/1.3/jre/download-windows.html)

Optional Software

Forte for Java, release 2.0 (http://www.sun.com/forte/ffj/buy.html)

Lastly on this topic before I mail to j2mewtk-comments@sun.com, do you think it still a problem?

Please reply, and thanks for your patience.

Sunil

sunilonline at 2007-6-29 3:12:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
When Sun says this,Java 2 Standard Edition, version 1.3.0 or higher:they mean SDKs version 1.3.0 or higher, that are fully developed and released for public use, not the beta versions. Personally know this, bad experience with it before.axlrose82
axlrose82 at 2007-6-29 3:12:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...