I wrote this program "Hello World". It compiled, preverified, jarred and executed. Its showing up in the emulator : Select one to launch - HelloWorld. But I click the launch button, it goes back to the DOS mode giving a huge report. Can anyone tell me what went wrong ? Thanks
'sun supported wireless toolkit' ? J2ME Wireless Toolkit provided by Sun is 'sun supported wireless toolkit' ? I used standard J2ME emulator - default grey phone for emulation.
Anjanesh Lekshminarayanan
Ranch Hand
Joined: Oct 21, 2003
Posts: 46
posted
0
Long time since original date of post but if it helps for others who face this problem.
I am using J2SE 1.5 and WTK 2.1 It seems there are some issues when compiling with J2SE 1.5
Need to compile as if its in version 1.4 : compile.bat
Ahh good catch. But how do you mean you are compiling with J2SE 5.0
J2ME is its own set of APIs and is a subset of J2SE, so you can't really use J2SE to compile. the toolkit has J2ME jar files and compiles using those, no J2SE.
I have been trying this now for almost a week and couldn't resolve 'ALERT: java/lang/ClassFormatError: bad version information' error.
I have written a java program using Eclipse 3.3.1 (JRE 1.6) which inject some code directly in a J2ME MIDlet. I do the the preverification of the MIDlet class after modification.
I have tried to compile and preverify my programs from both Eclipse and Command line(as you have suggested) but couldn't get rid of it. Please suggest if you have any solution in Mind.
Regards
Mukesh
Anjanesh Lekshminarayanan wrote:Long time since original date of post but if it helps for others who face this problem.
I am using J2SE 1.5 and WTK 2.1
It seems there are some issues when compiling with J2SE 1.5
Need to compile as if its in version 1.4 :
compile.bat