发明名称 |
Classpath optimization in a Java runtime environment |
摘要 |
A computer implemented method, data processing system, and computer usable program are provided by the aspects of the present invention. Aspects of the present invention identify required classes of a software program in the import statements in the source code. Next, the aspects of the present invention identify an element in a classpath environment variable that contain only the required classes and generate a new classpath environment variable with the identified element. Aspects of the present invention then store the new classpath environment variable in a classpath file that is specific to the software program for subsequent invocation. |
申请公布号 |
US9069582(B2) |
申请公布日期 |
2015.06.30 |
申请号 |
US201213615975 |
申请日期 |
2012.09.14 |
申请人 |
International Business Machines Corporation |
发明人 |
Mausolf Jeffry Richard;Stephens Kimberly Ann |
分类号 |
G06F9/445 |
主分类号 |
G06F9/445 |
代理机构 |
Yee & Associates, P.C. |
代理人 |
Yee & Associates, P.C. ;Vallone Mark C. |
主权项 |
1. A method for classpath environmental variable optimization in a platform independent runtime environment, the method comprising the steps of:
a computer identifying a required class in an import statement in source code for a software program, wherein the required class is required by the software program; the computer identifying an element containing the required class in a classpath environment variable to form an identified element, wherein the element includes at least one of a directory and an archive file; the computer generating a new classpath environment variable using the identified element; the computer storing the new classpath environment variable in a classpath file, wherein the classpath file has a name of the software program and a classpath extension; responsive to a received command to invoke the software program, the computer determining if a classpath file with a name of the software program and a .classpath extension is present; and if the classpath file with a name of the software program and a .classpath extension is present, the computer invoking the software program using the classpath file having the new classpath environment variable stored therein. |
地址 |
Armonk NY US |