{"id":347,"date":"2021-04-29T14:02:24","date_gmt":"2021-04-29T06:02:24","guid":{"rendered":"http:\/\/112.124.66.68\/?p=347"},"modified":"2021-04-29T14:02:24","modified_gmt":"2021-04-29T06:02:24","slug":"jvm%e5%8a%a0%e8%bd%bdclass%e6%96%87%e4%bb%b6%e7%9a%84%e5%8e%9f%e7%90%86%e6%9c%ba%e5%88%b6","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2021\/04\/29\/jvm%e5%8a%a0%e8%bd%bdclass%e6%96%87%e4%bb%b6%e7%9a%84%e5%8e%9f%e7%90%86%e6%9c%ba%e5%88%b6\/","title":{"rendered":"JVM\u52a0\u8f7dclass\u6587\u4ef6\u7684\u539f\u7406\u673a\u5236"},"content":{"rendered":"\n<p>JVM\u4e2d\u7c7b\u7684\u88c5\u8f7d\u662f\u7531\u7c7b\u52a0\u8f7d\u5668\uff08ClassLoader\uff09\u548c\u5b83\u7684\u5b50\u7c7b\u6765\u5b9e\u73b0\u7684\uff0cJava\u4e2d\u7684\u7c7b\u52a0\u8f7d\u5668\u662f\u4e00\u4e2a\u91cd\u8981\u7684<br>Java\u8fd0\u884c\u65f6\u7cfb\u7edf\u7ec4\u4ef6\uff0c\u5b83\u8d1f\u8d23\u5728\u8fd0\u884c\u65f6\u67e5\u627e\u548c\u88c5\u5165\u7c7b\u6587\u4ef6\u4e2d\u7684\u7c7b\u3002<\/p>\n\n\n\n<p> \u7531\u4e8eJava\u7684\u8de8\u5e73\u53f0\u6027\uff0c\u7ecf\u8fc7\u7f16\u8bd1\u7684Java\u6e90\u7a0b\u5e8f\u5e76\u4e0d\u662f\u4e00\u4e2a\u53ef\u6267\u884c\u7a0b\u5e8f\uff0c\u800c\u662f\u4e00\u4e2a\u6216\u591a\u4e2a\u7c7b\u6587\u4ef6\u3002\u5f53Java\u7a0b\u5e8f\u9700\u8981\u4f7f\u7528\u67d0\u4e2a\u7c7b\u65f6\uff0cJVM\u4f1a\u786e\u4fdd\u8fd9\u4e2a\u7c7b\u5df2\u7ecf\u88ab\u52a0\u8f7d\u3001\u8fde\u63a5\uff08\u9a8c\u8bc1\u3001\u51c6\u5907\u548c\u89e3\u6790\uff09\u548c\u521d\u59cb\u5316\u3002<\/p>\n\n\n\n<p>\u7c7b\u7684\u52a0\u8f7d\u662f\u6307\u628a\u7c7b\u7684.class\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u8bfb\u5165\u5230\u5185\u5b58\u4e2d\uff0c\u901a\u5e38\u662f\u521b\u5efa\u4e00\u4e2a\u5b57\u8282\u6570\u7ec4\u8bfb\u5165.class\u6587\u4ef6\uff0c\u7136\u540e\u4ea7\u751f\u4e0e\u6240\u52a0\u8f7d\u7c7b\u5bf9\u5e94\u7684Class\u5bf9\u8c61\u3002\u52a0\u8f7d\u5b8c\u6210\u540e\uff0cClass\u5bf9\u8c61\u8fd8\u4e0d\u5b8c\u6574\uff0c\u6240\u4ee5\u6b64\u65f6\u7684\u7c7b\u8fd8\u4e0d\u53ef\u7528\u3002\u5f53\u7c7b\u88ab\u52a0\u8f7d\u540e\u5c31\u8fdb\u5165\u8fde\u63a5\u9636\u6bb5\uff0c\u8fd9\u4e00\u9636\u6bb5\u5305\u62ec\u9a8c\u8bc1\u3001\u51c6\u5907\uff08\u4e3a\u9759\u6001\u53d8\u91cf\u5206\u914d\u5185\u5b58\u5e76\u8bbe\u7f6e\u9ed8\u8ba4\u7684\u521d\u59cb\u503c\uff09\u548c\u89e3\u6790\uff08\u5c06\u7b26\u53f7\u5f15\u7528\u66ff\u6362\u4e3a\u76f4\u63a5\u5f15\u7528\uff09\u4e09\u4e2a\u6b65\u9aa4\u3002<\/p>\n\n\n\n<p>\u6700\u540eJVM\u5bf9\u7c7b\u8fdb\u884c\u521d\u59cb\u5316\uff0c\u5305\u62ec\uff1a<\/p>\n\n\n\n<p>1)\u5982\u679c\u7c7b\u5b58\u5728\u76f4\u63a5\u7684\u7236\u7c7b\u5e76\u4e14\u8fd9\u4e2a\u7c7b\u8fd8\u6ca1\u6709\u88ab\u521d\u59cb\u5316\uff0c\u90a3\u4e48\u5c31\u5148\u521d\u59cb\u5316\u7236\u7c7b\uff1b<\/p>\n\n\n\n<p>2)\u5982\u679c\u7c7b\u4e2d\u5b58\u5728\u521d\u59cb\u5316\u8bed\u53e5\uff0c\u5c31\u4f9d\u6b21\u6267\u884c\u8fd9\u4e9b\u521d\u59cb\u5316\u8bed\u53e5\u3002 \u7c7b\u7684\u52a0\u8f7d\u662f\u7531\u7c7b\u52a0\u8f7d\u5668\u5b8c\u6210\u7684\uff0c\u7c7b\u52a0\u8f7d\u5668\u5305\u62ec\uff1a\u6839\u52a0\u8f7d\u5668\uff08BootStrap\uff09\u3001\u6269\u5c55\u52a0\u8f7d\u5668\uff08Extension\uff09\u3001\u7cfb\u7edf\u52a0\u8f7d\u5668\uff08System\uff09\u548c\u7528\u6237\u81ea\u5b9a\u4e49\u7c7b\u52a0\u8f7d\u5668\uff08java.lang.ClassLoader\u7684\u5b50\u7c7b\uff09\u3002<\/p>\n\n\n\n<p>\u4eceJava 2\uff08JDK 1.2\uff09\u5f00\u59cb\uff0c\u7c7b\u52a0\u8f7d\u8fc7\u7a0b\u91c7\u53d6\u4e86\u7236\u4eb2\u59d4\u6258\u673a\u5236\uff08PDM\uff09\u3002PDM\u66f4\u597d\u7684\u4fdd\u8bc1\u4e86Java\u5e73\u53f0\u7684\u5b89\u5168\u6027\uff0c\u5728\u8be5\u673a\u5236\u4e2d\uff0cJVM\u81ea\u5e26\u7684Bootstrap\u662f\u6839\u52a0\u8f7d\u5668\uff0c\u5176\u4ed6\u7684\u52a0\u8f7d\u5668\u90fd\u6709\u4e14\u4ec5\u6709\u4e00\u4e2a\u7236\u7c7b\u52a0\u8f7d\u5668\u3002\u7c7b\u7684\u52a0\u8f7d\u9996\u5148\u8bf7\u6c42\u7236\u7c7b\u52a0\u8f7d\u5668\u52a0\u8f7d\uff0c\u7236\u7c7b\u52a0\u8f7d\u5668\u65e0\u80fd\u4e3a\u529b\u65f6\u624d\u7531\u5176\u5b50\u7c7b\u52a0\u8f7d\u5668\u81ea\u884c\u52a0\u8f7d\u3002JVM\u4e0d\u4f1a\u5411Java\u7a0b\u5e8f\u63d0\u4f9b\u5bf9Bootstrap\u7684\u5f15\u7528\u3002<\/p>\n\n\n\n<p>\u4e0b\u9762\u662f\u5173\u4e8e\u51e0\u4e2a\u7c7b\u52a0\u8f7d\u5668\u7684\u8bf4\u660e\uff1a<br>Bootstrap\uff1a\u4e00\u822c\u7528\u672c\u5730\u4ee3\u7801\u5b9e\u73b0\uff0c\u8d1f\u8d23\u52a0\u8f7dJVM\u57fa\u7840\u6838\u5fc3\u7c7b\u5e93\uff08rt.jar\uff09\uff1b<br>Extension\uff1a\u4ecejava.ext.dirs\u7cfb\u7edf\u5c5e\u6027\u6240\u6307\u5b9a\u7684\u76ee\u5f55\u4e2d\u52a0\u8f7d\u7c7b\u5e93\uff0c\u5b83\u7684\u7236\u52a0\u8f7d\u5668\u662fBootstrap\uff1b<br>System\uff1a\u53c8\u53eb\u5e94\u7528\u7c7b\u52a0\u8f7d\u5668\uff0c\u5176\u7236\u7c7b\u662fExtension\u3002\u5b83\u662f\u5e94\u7528\u6700\u5e7f\u6cdb\u7684\u7c7b\u52a0\u8f7d\u5668\u3002\u5b83\u4ece\u73af\u5883\u53d8\u91cfclasspath\u6216\u8005\u7cfb\u7edf\u5c5e\u6027java.class.path\u6240\u6307\u5b9a\u7684\u76ee\u5f55\u4e2d\u8bb0\u8f7d\u7c7b\uff0c\u662f\u7528\u6237\u81ea\u5b9a\u4e49\u52a0\u8f7d\u5668\u7684\u9ed8\u8ba4\u7236\u52a0\u8f7d\u5668\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"384\" src=\"http:\/\/112.124.66.68\/wp-content\/uploads\/2021\/04\/690102-20160726145530263-378108880.png\" alt=\"\" class=\"wp-image-344\" srcset=\"https:\/\/sanlangcode.com\/wp-content\/uploads\/2021\/04\/690102-20160726145530263-378108880.png 606w, https:\/\/sanlangcode.com\/wp-content\/uploads\/2021\/04\/690102-20160726145530263-378108880-300x190.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>JVM\u4e2d\u7c7b\u7684\u88c5\u8f7d\u662f\u7531\u7c7b\u52a0\u8f7d\u5668\uff08C&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":325,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5],"tags":[],"class_list":["post-347","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-jvm"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=347"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/347\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media\/325"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}