Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » ClassFormatError compiling and running a Java (Mobile) prog?
ClassFormatError compiling and running a Java (Mobile) prog? [message #739768] Mon, 17 October 2011 20:52 Go to next message
Alex Kerr is currently offline Alex KerrFriend
Messages: 18
Registered: October 2009
Junior Member
When I run a Java Mobile program (CLDC 1.0, MIDP 2.0) I've been writing I get the following output (see below) from the JavaME Platform SDK 3.0 JavaME phone emulator, in the Eclipse Console. However, when I run exactly the same code in Netbeans 7.0, also using the exact same Java Platform SDK emulator, everything just runs as it should. Weird!

Anyone got any clues please? Thank you.

Output in Eclipse console:


Installing suite from: http://127.0.0.1:64391/AlphaMobile.jad

****warning****
****Untrusted user classes must never be put
****on the system class path
****warning****

TRACE: <at java.lang.Error: ClassFormatError: 154>, startApp threw an Exception
java.lang.Error: ClassFormatError: 154
- java.lang.Class.invoke_verify(), bci=0
- java.lang.Class.initialize(), bci=117
- AlphaMain.startApp(), bci=0
- javax.microedition.midlet.MIDletTunnelImpl.callStartApp(), bci=1
- com.sun.midp.midlet.MIDletPeer.startApp(), bci=7
- com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=269
- com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=52
- com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=8
- com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=161
- com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26
java.lang.Error: ClassFormatError: 154
- java.lang.Class.invoke_verify(), bci=0
- java.lang.Class.initialize(), bci=117
- AlphaMain.startApp(), bci=0
- javax.microedition.midlet.MIDletTunnelImpl.callStartApp(), bci=1
- com.sun.midp.midlet.MIDletPeer.startApp(), bci=7
- com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=269
- com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=52
- com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=8
- com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=161
- com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26

[Updated on: Mon, 17 October 2011 20:57]

Report message to a moderator

Re: ClassFormatError compiling and running a Java (Mobile) prog? [message #740060 is a reply to message #739768] Tue, 18 October 2011 05:32 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
MTJ could be the right forum for this question. I don't know about that properly but my question would be - did you configure your project to generate class files compatible with CLDC 1.1?
Re: ClassFormatError compiling and running a Java (Mobile) prog? [message #740294 is a reply to message #740060] Tue, 18 October 2011 10:58 Go to previous message
Alex Kerr is currently offline Alex KerrFriend
Messages: 18
Registered: October 2009
Junior Member
> MTJ could be the right forum for this question

Only MTJ forum I can see is about the development of MTJ itself, so assumed this forum was the best fit!?

> did you configure your project to generate class files compatible with CLDC?

Well, I'm not sure. I set Project->Properties->Java Compiler settings to be Compiler Compliance Level as 1.3 and Source Compatibility to be 1.3 also, and then "Generated .class files compatibility" to be CLDC 1.1. Same result. And I've also tried all those as 1.4 and 1.6 and 1.5 too. Nothing makes a difference!
Previous Topic:What is the progid for Safari & Chrome Browser in Windows XP & Window7
Next Topic:Easy SOAP client code in java?
Goto Forum:
  


Current Time: Sat Apr 27 05:24:20 GMT 2024

Powered by FUDForum. Page generated in 0.03187 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top