From: Alex G. <ale...@ne...> - 2010-03-18 18:37:25
|
18.3.2010 13:44, Jan Wedel kirjoitti: > > Hi, > > I have managed to run a python generated midlet in a JavaME emulator. > The problem is, that the emulator returns with: > > Installing suite from: http://127.0.0.1:1215/midlettest.jad > > java.lang.Error: ClassFormatError: 56 > > - java.lang.Class.forName(), bci=0 > > - com.sun.midp.main.CldcMIDletLoader.newInstance(), bci=1 > > - com.sun.midp.midlet.MIDletStateHandler.createMIDlet(), bci=66 > > - com.sun.midp.midlet.MIDletStateHandler.createAndRegisterMIDlet(), > bci=17 > > - com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=27 > > - 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 > > I read somewhere that this error is related to incompatible bytecodes > or class file format. JavaME supports Java 1.3 (AFAIK) and Jython > obviously uses the latest (1.5). > > So, is there a way to specify to compiler compliance level when > generating the class files or is it possible to generate a Java file > instead of a class file so I can manually change and recompile it? > Not with Jython 2.5. You'll have to stick to 2.2.1. > > Thanks, > > Jan > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |