Only after realizing where you want to use the Java can you use the Java well in the embedded system. Currently, there are four Java usage models that are distinguished by two facts:
1) The location of the stored Java byte codes and
2) The processor on which they are executed [10].
In ref [10] it was pointed out that there were four models: No Java, Embedded Web Server Java, Embedded Applet Java, or Application Java.
1) No Java model includes all scenarios in which the byte codes are stored on and executed by a host computer. In this model, because Java is never actually on the embedded system, no Java runtime environment is required, and normal JDK on host machine is good enough.
2) In the Embedded Web Server model, the Java byte codes are stored on the embedded system, but executed by a host computer. This model is useful for networked embedded systems. Although we need space to store Java byte code in the embedded system, similar to No Java model, Java is not actually executed on the embedded system, no Java runtime environment is required.
3) In the Embedded Applet Java model, the Java bytecodes are stored on a host machine and sent to the embedded system over a network. The embedded system actually executes the bytecodes in this scenario. There is no space need for storing Java bytecodes, but a Java runtime environment is required.
4) Application Java model is the most interesting model from the viewpoint of this paper. In the Application Java model, Java comprises some or all of the actual embedded software. The Java bytecodes are stored in a nonvolatile memory device (usually ROM) and executed by the Java runtime environment.