The invention relates to a managing method of a free block in an
EEPROM (Electrically Erasable Programmable Read-Only Memory) memory area of a
Java card, in particular to a managing method for the free block of the
Java card. The method comprises the steps of managing information of free blocks in all EEPROMs for the
Java card through a free block information table, distributing a space for a first node of the free block information table from the EEPROMs in advance, and applying for memory spaces for subsequent nodes from the EEPROMs when the number of the free blocks exceeds the maximum quantity stored by an existing node; when the memory space is applied for data, traversing the free block information table and selecting the free blocks of proper sizes; when the memory space occupied by the data is released, combining the released memory space to the free blocks of proper sizes according to a block ordering-by-merging
algorithm, and sorting the free block information according to size; storing the free block information in a
sequence memory way from small to big according to the sizes of the blocks, so that the memory positions can be quickly found out when the memory space is applied, and the executing efficiency can be greatly improved; furthermore, the operating efficiency of the
Java card can be significantly improved by the
Java card managing method provided by the invention.