Java 2 Micro Edition Introduction (2)

zhaozj2021-02-17  53

Author: Wang Sen Taiwan Institute of Technology Management Jiaotong University moli.mt88g@nctu.edu.tw█ linkages between Java version - JINI technology

Since there is a fact that many different Java versions are a fact, then, if these Java programs developed for different versions can be connected to each other, share each other's resources, or doing information exchange, isn't it a great Do things? This is the reason for Jini created. A variety of different versions of Java platforms are connected to each other by jini, as shown below:

With regard to Jini technology, there are not many inks here, because there are many books on the market to discuss this technology. However, in the above picture, please note that the Smart Card version is made by its characteristics, so it does not communicate with other Java version applications, but only in the major distributed environment caused by Jini. It is used as an authentication. █ Various Java version of the program development

As mentioned earlier, a variety of different Java versions are different in their integrity of their support and the supported Java basic types, but for program designers, these versions Relationship Now:

That is, no matter what you develop is the Java program used by the company, the Java program executed on the handheld device, the applet executed on the browser, or the application executed on the PC. You must install J2se first on your computer, then install additional extension categories of various versions, so that you can successfully develop a java program for different features.

Java Compiler (JavaC.exe) provided by J2SE can help we compile the Java programs on various platforms, while Java Virtual Machines (java.exe) provided by J2SE can help us test these programs in PC. The result is correct or not.

In addition, the Java compiler does not help you check if your program meets the core categories supported on a variety of platforms and Java basic models. For example, although we have said above, the SMART Card version does not support Boolean. The basic type of Java other than Byte, and the platform only supports java.lang. * Core category, but when we write a Smart Card platform When the program applied to the Java basic model other than Boolean or byte in the program code, or use the core category other than Java.lang. *, The compiler can still compile the category file. At this time, everyone must start to produce doubts - if these programs are executed when they are executed on the smart card, do you do anything wrong with the virtual machine on the Smart Card? Potential problems, so in a variety of different versions of the development kit, some of the inspector (Preverier) or preverier, these two tools can help you check the program before you go to the target platform. And pre-reviewed work.

The inspector will help you find some parts of the target platform specification in the category file and remind you that these places may not be performed on the destination platform. Therefore, as long as there is an inspector, you can basically determine that your program can meet the rules of the target platform and perform smoothly. The development kit of some platforms is accompanied by a pre-audit, which is because the executive program of the traditional Java program (Applet) is as follows:

In traditional Java programs, for a safe consideration, any category that enters the execution environment (regardless of this class gear is from this unit or remote machine), it must first pass through the Byte Code Verifier. Verify to prevent some people from being maliciously modified on the way of program transfer, so that the Java program has adverse effects on the system during execution. After verification, this class can begin to be executed by the JVM.

转载请注明原文地址:https://www.9cbs.com/read-30330.html

New Post(0)