You should be able to add the features you need yourself to J2ME. What are you missing from it?

Anyways, you can actually use still use Mono by using IKVM (http://www.ikvm.net). It use a modified version of the GNU Classpath for the Java framework libraries just like SableVM does. You can use their tool to convert your Java classes to CLI bytecode and access them just like any another assembly in Mono. You can write your application in C# but still use and call your Java libraries where you need too. Microsoft created a similar product after we introduced IKVM called J#, but unfortunately it only supports Java up to 1.2 and J# language is not exactly Java but the do have a Java bytecode converter like we do (although if you wanted you could still use J# and after its compiled run it Mono's runtime since its all CLI bytecode by that point).

I use mono on my net4801 and it runs great and only uses 12mb and I've got a full blown stack. Add an extra 2.9MB for IKVM. With mkbundle you can generates a single x86 redistributable elf binary that compacts and trims the required assemblies and bundles it all in with the runtime with no required depedencies. I've managed to get a C# based bit torrent command line client down to a 1MB with mkbundle and thats everything (including runtime, application, and class libraries).

Zac

Roberto Riggio wrote:
Well... I'm developing this apps. It is not that complex by itself however it is built using pastry (a peer-to-peer overlay). So it would not be that easy
to port to Mono.

Also my app doesn't run with j2me.
Anyway I'm still puzzled why a working sablevm setup takes so much
space.

Bye


----- Original Message -----
From: Zac Bowling <[EMAIL PROTECTED]>
To: roberto riggio <[EMAIL PROTECTED]>
Cc: . <[EMAIL PROTECTED]>
Sent: Saturday, March 3, 2007 9:21:10 PM GMT+0100 Europe/Berlin
Subject: Re: [Voyage-linux] Java VM

If it has to be java then you can look into J2ME/CLDC 1.1. The runtime is less then 450k and class libraries in many cases and you can shrink it down even more by leaving out specific pieces.

If you are developing it yourself, then I suggest using Mono rather then Java. You can do a lot more, its faster, its smaller, its far more easier to mix with native code, more security options, etc, etc... and C#'s syntax is very similar to that of Java...

But then I'm partial to Mono since on of the core developers on the project :-)

Zac


Roberto Riggio wrote:
Hi,

this is my first post on this ML. I'm using voyage linux on a WRAP board 1E.

I'm interested in running some java apps. I'm installing sablevm in this moment,
however according to apt-get the installation will require 83 MB!!! I've used before sablevm with openwet on some linksys wireless routers and the required space was far below 80 Mb. My target would be to have a voyege system with a java vm in a 128 Mb compact flash.
Do you have any suggestion?

Thanks
Roberto

_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux






_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux

Reply via email to