Movatterモバイル変換


[0]ホーム

URL:


CN101847103A - Method and device for running JAVA application - Google Patents

Method and device for running JAVA application
Download PDF

Info

Publication number
CN101847103A
CN101847103ACN201010153070ACN201010153070ACN101847103ACN 101847103 ACN101847103 ACN 101847103ACN 201010153070 ACN201010153070 ACN 201010153070ACN 201010153070 ACN201010153070 ACN 201010153070ACN 101847103 ACN101847103 ACN 101847103A
Authority
CN
China
Prior art keywords
java application
application program
file
description document
source file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201010153070A
Other languages
Chinese (zh)
Inventor
李伟明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co LtdfiledCriticalHuawei Device Co Ltd
Priority to CN201010153070ApriorityCriticalpatent/CN101847103A/en
Publication of CN101847103ApublicationCriticalpatent/CN101847103A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

The invention discloses a method for running the JAVA application, which comprises the following steps of: extracting tagged files of the JAVA application from the source file of uninstalled JAVA application; matching the tagged files with description files of the JAVA application; and if the matching succeeds, running the JAVA application. Meanwhile, the invention also discloses a device for running JAVA application. By adopting the method and the device for running JAVA application, the running of the JAVA application can be realized under the condition of not installing the JAVA application in advance, which facilitates the use of the user, and avoids the phenomenon of resources occupation and long elapsed time caused by the installation of the JAVA application.

Description

The method and the device of operation JAVA application program
Technical field
The present invention relates to communication technical field, relate in particular to the method and the device of operation JAVA application program.
Background technology
Along with improving constantly of hardware technology level, the JAVA application program is fewer and feweri to the dependence of hardware resource, and the application on mobile phone more and more widely.But on mobile phone, be subjected to the constraint of AMS (ApplicationManagement System, application management system) at present, after the JAVA application program copies mobile phone to by USB or bluetooth, must after installing, could move.
And present in the installation process of JAVA application program, AMS need move to the description document (jad file) and the source file (jar file) of JAVA application program in the system directory of JAVA, through ability successful installation after a series of processing.Generally speaking, need through jar file decompress(ion), attributes match, certificate verification and 4 processes of generation AMS management document:
1, with label file (mif file) and display file (icon file) decompress(ion);
2, jad file and mif file are mated, if coupling, then successful installation;
If 3 jad files exist and through signature, judge then whether certificate is effective, and generate secure configuration file;
4, generate the AMS management document.
The inventor finds that there is following deficiency in above-mentioned prior art:
In the prior art, the JAVA application program must could be moved after installing.After installing, before the JAVA application program is installed and the catalogue after installing inconsistent, the user will carry out the JAVA application program that multi-pass operations just can be found installation, has increased the inconvenience used and the worry on some safety to the user.In installation process, need the jar file is separated press operation, separate press operation, cause resource occupation too much like this, especially for the cell phone apparatus of resource-constrained and in the actual moving process of JAVA application program, also will carry out a file again.In addition, if the JAVA application program of installing is many, installation process is consuming time also longer.
Summary of the invention
The embodiment of the invention provides a kind of method of the JAVA of operation application program, and in order to need not to install in advance operation JAVA application program under the situation of JAVA application program, this method comprises:
From the source file of uninstalled JAVA application program, separate the label file that extrudes described JAVA application program;
The description document of described label file and described JAVA application program is mated;
When the match is successful, move described JAVA application program.
The embodiment of the invention also provides a kind of device of the JAVA of operation application program, and in order to need not to install in advance operation JAVA application program under the situation of JAVA application program, this device comprises:
Decompression module is used for separating the label file that extrudes described JAVA application program from the source file of uninstalled JAVA application program;
Matching module is used for the description document of described label file and described JAVA application program is mated;
The operation module is used for when the match is successful, moves described JAVA application program.
In the embodiment of the invention, from the source file of uninstalled JAVA application program, separate the label file that extrudes described JAVA application program; The description document of described label file and described JAVA application program is mated; When the match is successful, move described JAVA application program; Thereby need not to install in advance the operation that realizes the JAVA application program under the situation of JAVA application program, be user-friendly to, avoided carrying out that the JAVA application program is installed and the resource occupation and the long problem consuming time that cause.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.In the accompanying drawings:
Fig. 1 is the method processing flow chart of operation JAVA application program in the embodiment of the invention;
Fig. 2 is the processing flow chart of the instantiation of the method for operation JAVA application program in the embodiment of the invention;
Fig. 3 is the structural representation of the device of operation JAVA application program in the embodiment of the invention;
Fig. 4 is the structural representation of the instantiation of the device of operation JAVA application program in the embodiment of the invention;
Fig. 5 is the structural representation of the instantiation of the device of operation JAVA application program in the embodiment of the invention;
Fig. 6 is the structural representation of the instantiation of the device of operation JAVA application program in the embodiment of the invention;
Fig. 7 is the structural representation of the instantiation of the device of operation JAVA application program in the embodiment of the invention;
Fig. 8 is the structural representation of the instantiation of the device of operation JAVA application program in the embodiment of the invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer, the embodiment of the invention is described in further details below in conjunction with accompanying drawing.At this, illustrative examples of the present invention and explanation thereof are used to explain the present invention, but not as a limitation of the invention.
As shown in Figure 1, in the embodiment of the invention, the method treatment scheme of operation JAVA application program can comprise:
Step 101, from the source file of uninstalled JAVA application program, separate the label file that extrudes described JAVA application program;
Step 102, the description document of described label file and described JAVA application program is mated;
Step 103, when the match is successful, move described JAVA application program.
Can learn by flow process shown in Figure 1, in the embodiment of the invention, from the source file of uninstalled JAVA application program, separate the label file that extrudes described JAVA application program; The description document of described label file and described JAVA application program is mated; When the match is successful, move described JAVA application program; Thereby need not to install in advance the operation that realizes the JAVA application program under the situation of JAVA application program, be user-friendly to, avoided carrying out that the JAVA application program is installed and the resource occupation and the long problem consuming time that cause.
During concrete enforcement, can consider after having moved uninstalled JAVA application program, logout to be preserved, follow-up like this when moving this JAVA application program once more, just can directly start virtual machine by this JAVA application program of access originator running paper, thereby reduce matching process.In this example, judge whether to have preserved the logout of uninstalled JAVA application program earlier, if there is not the logout of this JAVA application program, then from the source file (jar file) of this JAVA application program, separate the label file (mif file) that extrudes this JAVA application program; The description document (jad file) of label file and this JAVA application program is mated; When the match is successful, move this JAVA application program, after this JAVA application program of operation, also preserve logout; If preserved the logout of this JAVA application program, before promptly being described, this JAVA application program moved, and can directly start virtual machine and move this JAVA application program by the visit description document.
Among the embodiment,, then can also resolve the description document (jad file) of this JAVA application program if there is not the logout of uninstalled JAVA application program; When determining description document through signature, generate the secure configuration file and the preservation of this JAVA application program by resolving.
Because disclosed on the internet JAVA application program major part all is not through signing at present, not having the program of signature, will to be considered to the third party non-faithful, need be at some sensitive apis of visit (Application Programming Interface, application programming interface) limits the time, during as accesses network or mobile phone file system, need to eject dialog box prompting user and confirm; Prior art is when installing each JAVA application program, and AMS need repeat to generate the same secure configuration file to the JAVA application program of each unsigned, the purpose that limits with the access rights that realize these JAVA application programs.
In order to reduce the management link of JAVA application program, avoid generating the temporary file and the redundant file of some installation processes, save memory, in the embodiment of the invention, if by resolving the description document of JAVA application program, determine that description document not through signature, does not promptly exist certificate and signature, then the security configuration of this JAVA application program can be made as automatically the access rights of the non-program correspondence of keeping one's word of third party, generate a secure configuration file no longer separately; That is to say, in the JAVA of embodiment of the invention application program operational process, needn't all will generate secure configuration file the JAVA application program of each unsigned.And for the description document through signature, because the secure access authority of different JAVA application programs may be different, its corresponding secure configuration file is also different, therefore can generate the secure configuration file and the preservation of this JAVA application program when determining description document through signature by parsing.
During concrete enforcement, the logout of aforementioned JAVA application program and/or secure configuration file can be preserved by database or configuration file.In specific implementation, for the more situation of JAVA number of applications, information such as the logout of suggestion employing database maintenance JAVA application program and secure configuration file; And, can adopt configuration file to come information such as the logout of JAVA application program and secure configuration file are carried out record for the less situation of JAVA number of applications.The file structure of this configuration file can have various ways, and the content of configuration file need be distinguished different JAVA application program and relevant information, lifts one for example down:
JAVA1 (name of JAVA application program), the size of jar file, the title of secure configuration file, RMS (Record Management Store, record management storage) folder path; JAVA 2, the size of jar file, the title of secure configuration file, RMS folder path;
Among the embodiment, before from the source file of JAVA application program, separating the label file that extrudes the JAVA application program, can also comprise the step that obtains source file.And that the method that obtains source file can have is multiple, for example, when selecting source file to move the JAVA application program, can directly select source file; When moving the JAVA application program by the selection description document, can move described description document, search the described source file of the same name with described description document; Also can search described source file according to the content of described description document.
Among the embodiment, before the description document of label file and JAVA application program is mated, can also comprise the step that obtains description document.And that the method that obtains description document also can have is multiple, for example, when selecting description document to move the JAVA application program, can directly select description document; When moving the JAVA application program by the selection source file, can move source file, search the described description document of the same name with described source file.
If operation source file, but do not search the described description document of the same name with described source file, then can think the faithful JAVA application program of these JAVA application program right and wrong, do not need to carry out logout visit and relevant checking procedure, directly start virtual machine and get final product by the described JAVA application program of access originator running paper.
Lift the JAVA application program operation method in the instantiation explanation embodiment of the invention below.In this example, to be example by selecting description document to move the JAVA application program, as shown in Figure 2, treatment scheme can comprise:
Step 201, select the jad running paper of JAVA application program, automatically search jar file of the same name or under with the one-level catalogue according to the corresponding jar file of the content search of jad file;
Whetherstep 202, detection preserve the logout of this JAVA application program, if then execution instep 203, otherwise execution instep 204 is tostep 205;
Step 203, for the JAVA application program of preserving logout, directly start virtual machine by visit jar running paper JAVA application program;
Step 204, for the JAVA application program that does not have logout, resolve earlier the jad file, if there is no certificate and signature then are made as security configuration non-faithful authority automatically, generate a secure configuration file no longer separately; If the jad file through signing then generates a secure configuration file, so that access rights are limited in database;
Step 205, from the jar file, separate and extrude the mif file, and and the jad file mate; Then true(-)running that the match is successful, and deposit logout in database.
Based on same inventive concept, also provide a kind of device of the JAVA of operation application program in the embodiment of the invention, as described in the following examples.Because the principle of this device solves problem is similar to the method for operation JAVA application program, so the enforcement of this device can repeat part and repeat no more referring to the enforcement of method.
As shown in Figure 3, in the embodiment of the invention, the device of operation JAVA application program can comprise:
Decompression module 301 is used for separating the label file that extrudes described JAVA application program from the source file of uninstalled JAVA application program;
Matching module 302 is used for the description document of described label file and described JAVA application program is mated;
Operation module 303 is used for when the match is successful, moves described JAVA application program.
Among the embodiment,decompression module 301 specifically can be used for: when not having the logout of described JAVA application program, separate the label file that extrudes described JAVA application program from the source file of described JAVA application program;
Operation module 303 can also be used for: after the described JAVA application program of operation, preserve the logout of described JAVA application program.
As shown in Figure 4, among the embodiment, the device of operation JAVA application program shown in Figure 3 can also comprise:
First startsmodule 401, is used for when preserving the logout of described JAVA application program, starts virtual machine and moves described JAVA application program by visiting described source file.
As shown in Figure 5, among the embodiment, the device of operation JAVA application program shown in Figure 3 can also comprise:
Parsing module 501 is used for resolving described description document when not having the logout of described JAVA application program;
Generation module 502 is used for generating the secure configuration file and the preservation of described JAVA application program when described description document process is signed.
As shown in Figure 6, among the embodiment, the device of operation JAVA application program shown in Figure 3 can also comprise:
First search module 601 is used for moving described descriptiondocument decompression module 301 is separated the label file that extrudes described JAVA application program from the source file of described JAVA application program before, searches the described source file of the same name with described description document; Or, according to the content of described description document, search described source file.
As shown in Figure 7, among the embodiment, the device of operation JAVA application program shown in Figure 3 can also comprise:
Second search module 701 is used for moving described source file before matchingmodule 302 mates the description document of described label file and described JAVA application program, searches the described description document of the same name with described source file.
As shown in Figure 8, among the embodiment, the device of operation JAVA application program shown in Figure 7 can also comprise:
Second starts module 801, is used for starting virtual machine and moving described JAVA application program by visiting described source file when not searching with described source file described description document of the same name.
In the embodiment of the invention, from the source file of uninstalled JAVA application program, separate the label file that extrudes described JAVA application program; The description document of described label file and described JAVA application program is mated; When the match is successful, move described JAVA application program; Thereby need not to install in advance the operation that realizes the JAVA application program under the situation of JAVA application program, be user-friendly to, avoided carrying out that the JAVA application program is installed and the resource occupation and the long problem consuming time that cause.
In the embodiment of the invention, if by resolving the description document of JAVA application program, determine that description document not through signature, does not promptly exist certificate and signature, then the security configuration of this JAVA application program can be made as automatically non-faithful authority, generate a secure configuration file no longer separately; When determining description document through signature, just generate the secure configuration file and the preservation of this JAVA application program by parsing; Can reduce the management link of JAVA application program, avoid generating the temporary file and the redundant file of some installation processes, save memory.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware embodiment, complete software implementation example or in conjunction with the form of the embodiment of software and hardware aspect.And the present invention can adopt the form that goes up the computer program of implementing in one or more computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The present invention is that reference is described according to the process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block scheme and/or square frame and process flow diagram and/or the block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computing machine or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device, make on computing machine or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of carrying out on computing machine or other programmable devices is provided for being implemented in the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (15)

CN201010153070A2010-04-212010-04-21Method and device for running JAVA applicationPendingCN101847103A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201010153070ACN101847103A (en)2010-04-212010-04-21Method and device for running JAVA application

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201010153070ACN101847103A (en)2010-04-212010-04-21Method and device for running JAVA application

Publications (1)

Publication NumberPublication Date
CN101847103Atrue CN101847103A (en)2010-09-29

Family

ID=42771729

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201010153070APendingCN101847103A (en)2010-04-212010-04-21Method and device for running JAVA application

Country Status (1)

CountryLink
CN (1)CN101847103A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103809992A (en)*2012-11-132014-05-21中兴通讯股份有限公司Method and device for enabling Dalvik virtual machine to be compatible with different file format java application

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101256611A (en)*2008-04-032008-09-03中兴通讯股份有限公司 A Method of Realizing Digital Rights Management Protection in Java Application
CN101539971A (en)*2009-04-152009-09-23中兴通讯股份有限公司Method for protecting the copyright of Java application files, device and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101256611A (en)*2008-04-032008-09-03中兴通讯股份有限公司 A Method of Realizing Digital Rights Management Protection in Java Application
CN101539971A (en)*2009-04-152009-09-23中兴通讯股份有限公司Method for protecting the copyright of Java application files, device and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张学东: "基于MIDP2.0的移动证券安全性分析", 《中国水运(理论版 自然科学)》*
王森: "《Java手机/PDA程序设计入门》", 31 March 2004, 电子工业出版社*

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103809992A (en)*2012-11-132014-05-21中兴通讯股份有限公司Method and device for enabling Dalvik virtual machine to be compatible with different file format java application
CN103809992B (en)*2012-11-132018-01-09中兴通讯股份有限公司A kind of method and device of the compatible different file format java applications of Dalvik virtual machine

Similar Documents

PublicationPublication DateTitle
CN106471466B (en) ephemeral application
US9064134B1 (en)Method and apparatus for mitigating software vulnerabilities
US20110023007A1 (en)Associating Workflows With Code Sections In A Document Control System
TWI715762B (en)Method and apparatus for creating virtual machine
CN104220987A (en)Application installation
US11036479B2 (en)Devices, systems, and methods of program identification, isolation, and profile attachment
CN109951553B (en)Data processing method, system, electronic device and computer readable storage medium
CN111177271B (en)Data storage method, device and computer equipment for persistence of kafka data to hdfs
US8635682B2 (en)Propagating security identity information to components of a composite application
CN105975311A (en)Application startup method and device
EP3313041B1 (en)Application download method and device
US20170199889A1 (en)Method and device for identifying junk picture files
CN109472540B (en)Service processing method and device
CN106055375A (en)Application program installation method and device
CN102542200A (en)Method and device for processing digital authentication terminal
CN111045686A (en)Method for improving application decompilation speed, intelligent terminal and storage medium
CN112036125A (en)Document management method and device and computer equipment
CN113254106A (en)Task execution method and device based on Flink, computer equipment and storage medium
US9575750B2 (en)Generic annotation seeker
CN103164492A (en)File copying method between electronic devices and electronic devices
CN111125744B (en)Code branch merging method, system, computer device and readable storage medium
US9626371B2 (en)Attribute selectable file operation
CN113886353A (en) Data configuration recommendation method, device and storage medium for hierarchical storage management software
CN101847103A (en)Method and device for running JAVA application
CN108427599A (en)Method, apparatus and storage medium is uniformly processed in asynchronous task

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C12Rejection of a patent application after its publication
RJ01Rejection of invention patent application after publication

Application publication date:20100929


[8]ページ先頭

©2009-2025 Movatter.jp