Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for storing bytecode of JCRE (Java card run time environment)

A runtime environment and bytecode technology, applied in the field of smart cards, can solve problems such as lack of versatility, inability to separate bytecodes of JCRE, inconvenient configuration of Maskgen tools, etc.

Inactive Publication Date: 2011-04-20
BEIJING WATCH DATA SYST
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] The existing method of converting the Java code of JCRE into bytecode has the following defects: if the Java code of JCRE is to be modified, the bytecode needs to be generated again according to the above method and then compiled together with the C language of COS, which cannot be done The storage of JCRE bytecode is separated from COS, so the generation of JCRE bytecode is closely related to the platform and is not universal; when converting to bytecode, there are many configuration options such as ROMBASE and Native function names need to be configured And other parameters, it is inconvenient to use the Maskgen tool to configure

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for storing bytecode of JCRE (Java card run time environment)
  • Method and system for storing bytecode of JCRE (Java card run time environment)
  • Method and system for storing bytecode of JCRE (Java card run time environment)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The method and system for storing Java card runtime environment bytecodes provided by the present invention will be described in more detail below in conjunction with the accompanying drawings and embodiments.

[0030] According to the previous description, the development of the Java Card needs to generate the Java code that implements the runtime environment of the Java Card into a bytecode that can run on the Java Virtual Machine, and store the generated bytecode in the card. The code generation method and storage form, on the one hand, the storage structure is not uniform, on the other hand, the runtime environment of the Java Card needs to be modified frequently, so that the storage structure will be modified accordingly, which has great limitations and is not conducive to Java Card system development.

[0031] The present invention provides a method for storing Java card runtime environment bytecodes, such as figure 2 shown, including:

[0032] Step S201, conve...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and system for storing a bytecode of a JCRE (Java card run time environment). The method comprises: converting a Java code used for realizing the JCRE into a class file; converting the class file into a cap file; converting the cap file into a bytecode and storing the bytecode into the Java card; and recording the storage position of the bytecode in a package registry. By the invention, because the Java code of the JCRE is stored according to the loading process of an application program, in the loading process, with the Java card of the JCRE and a COS code are not required to be compiled together, only the Java code of the JCRE is modified, and the COS code is not required to be modified, therefore mutual independence of the Java code of the JCRE and a COS in the bottom layer is achieved.

Description

technical field [0001] The invention relates to the technical field of smart cards, in particular to a method and a system for storing Java card runtime environment byte codes. Background technique [0002] Java Card is an important branch of Java technology. Java Card technology includes Java Card Virtual Machine (JavaCard Virtual Machine, JCVM), Java Card Runtime Environment (Java Card RuntimeEnvironment, JCRE) and Java Card Application Programming Interface (Java Card Application Programming Interface, JCAPI) has three parts. [0003] JCVM is a virtual machine implemented through software simulation. After the introduction of JCVM, the Java language does not need to be recompiled when running on different platforms. The Java language program only needs to generate the object code that runs on the JCVM, that is, the bytecode, and it can run on various platforms without modification. When JCVM executes bytecode, it interprets bytecode into machine instructions on a specif...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/45G06K19/07
Inventor 唐守勤
Owner BEIJING WATCH DATA SYST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products