Jim, Alex,

 

Thanks for your replies. Actually, I’m working  with the configurable-proxies branch. I need static proxies to create understandable class files for the KVM. If I don’t and would write a customized Java file that complies and loads Jython and a script, everything (script + jython itself) MUST exist as compiled class files in ONE jar.

 

Now the problem is: I can’t use Jython (no ME) to create the class files because they don’t comply with 1.3. And I can’t use JythonME (supposing it would work) because in CLDC/MIDP I can’t write to files to create the class files plus CLDC is even more limited than CDC on what JythonME was built.

 

What about this “ancient” Jython compiler that creates class files. I guess, they are not self-contained in any way and still need jython? In that case, the first step would be to port Jython or maybe JyrhonME to CLDC and try to make it writing files.

 

Actually, Jim, you are right and mobile development does not need Jython 2.5>. Actually, we currently develop on a platform with build in Jython interpreter that runs Jython 1.5.2 without Float support J ! So, this would be basically enough! But as I explained, the tough part is to create CLDC/MIDP complying class files for both jython application as well as the jython libs that needs to be supported.

 

-Jan

 

 

Von: Jim Baker [mailto:jbaker@zyasoft.com]
Gesendet: Freitag, 19. März 2010 01:20
An: Alex Grönholm
Cc: jython-users
Betreff: Re: [Jython-users] Change compiler compliance level for byte codes or recompile with lower compliance level?

 

Starting from Jython 2.2 is what the jythonme project is doing (http://code.google.com/p/jythonme/). It's the right approach. Python 2.5 compliance matters significantly less on these small footprint platforms anyway (no one is going to run Pylons or Django or whatever, just small scripts), and it's much easier stretch. In contrast, Jython 2.5 relies too much on components that are hard to port back to Java 1.4, not to mention 1.3

There was a deliberate choice on our part to go down this path. In my opinion, Java 5 is when the Java platform became truly compelling, especially around issues like concurrency.

- Jim

2010/3/18 Alex Grönholm <alex.gronholm@nextday.fi>

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&#174; 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
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users
  

 


------------------------------------------------------------------------------
Download Intel&#174; 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
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users