Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Embedded - J2ME - Webserver

 
Nico Larsson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
What's happening, as I understand it Sun will not make it possible to use Java2 in embedded java, true???
I want to write a webserver that should fit on an embedded target, I don't want a thick (K)VM running on the target.
Have I missunderstood everything?
How small can an J2ME app be at the smallest, not something like 160K (which is to huge to fit on a small embedded target)?
With EmbeddedJava I just compile needed classes and my own app which could result in an app being less than 10K, not true?
PLEASE HELP!!!, Sun's website reily is bad in explaining the difference!!

Reg
Nico
 
Eric Giguere
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I posted an answer to you about this on the KVM-INTEREST list already.... basically EmbeddedJava just means that you can choose exactly which APIs you want to support, but you still need to have a VM and a runtime, so the 10K figure you quote is not accurate at all: you need to figure out what the size of the total application (VM + runtime + your classes) is. EmbeddedJava is strictly for device manufacturers who want to use Java internally but have no need to expose any Java APIs to third party developers.
As I said in my post, you're probably better off just writing your web server in C/C++ instead of wasting a lot of time trying to get a small Java implementation going.
Eric
 
Nico Larsson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric, I have been reading alot since your answer. I don't really agree with you.
Embedded java is very interesting, it doesn't really have any other disadvantages to C than the speed of execution. When compiled to a specific platform it runs abit slower but this is not an issue. It is much easier to implement a server in Java than in C. One big advantage is when using an applet as GUI. An applet doesn't consume any memory on the node it is loaded from which a C++ GUI does.
 
Eric Giguere
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's keep this discussion in one spot. I've already answered you in KVM-INTEREST, so I won't repeat it here.
To anyone else who is reading this: EmbeddedJava is something you license from Sun when you want to put a Java VM and runtime libraries on a device for internal use only, i.e. nobody outside your company can build apps that run in your EmbeddedJava environment. It's only of interest to a few people.
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic