Abstract:
Disclosed are a terminal device and server with a java virtual machine for preventing the illegal copy of a java application, and a method for authenticating the java application in the terminal device. The disclosed terminal device includes: a compile unit which generates a first native code by compiling a first basic block among a plurality of basic blocks constituting the java application; a comparing unit which compares the first native code with the code stored in a first address in the java application; and a control unit which authenticates the normal purchase of the java application if the first native code is identical to the code stored in the first address.
Abstract:
Disclosed are apparatus having a java virtual machine and a method for selectively compiling bytecodes into native codes in the apparatus having java virtual machine. The disclosed apparatus having java virtual machine comprises: a selection unit for selecting at least one basic block to pre-compile among a plurality of basic blocks forming the java application before java application process - the basic block comprises at least one bytecode; a compile unit for compiling the rest of basic blocks other than the basic block with runtime and pre-compiling the selected basic block before the java application process; and an execution unit for executing the pre-compiled basic block and the rest of basic blocks compiled with runtime.