{"id":3555,"date":"2024-02-20T18:01:02","date_gmt":"2024-02-20T10:01:02","guid":{"rendered":""},"modified":"2024-02-20T18:01:02","modified_gmt":"2024-02-20T10:01:02","slug":"eclipse\u542f\u52a8\u53c2\u6570\u8bbe\u7f6e\u5927\u5168","status":"publish","type":"post","link":"https:\/\/mushiming.com\/3555.html","title":{"rendered":"eclipse\u542f\u52a8\u53c2\u6570\u8bbe\u7f6e\u5927\u5168"},"content":{"rendered":"

\u8fd0\u884ceclipse\u65f6,\u5e38\u5e38\u62a5\u544a\u5806\u5185\u5b58\u51fa\u9519\u7b49\u95ee\u9898!\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6eeclipse\u542f\u52a8\u53c2\u6570\u6765\u4f7f\u95ee\u9898\u7f13\u89e3<\/span> <\/p>\n

<\/span><\/p>\n

\u5305\u62ec\u82f1\u6587\u7248\u672c\u548c\u4e2d\u6587\u7248\u672c\u4e24\u79cd\u7684\u8bf4\u660e, \u7279\u522b\u9700\u8981\u503c\u5f97\u4e00\u63d0\u7684\u662f\u90a3\u4e2a -nl \u53c2\u6570, \u53ef\u4ee5\u6307\u5b9a\u7a0b\u5e8f\u542f\u52a8\u65f6\u6240\u4f7f\u7528\u7684\u8bed\u8a00. \u4f8b\u5982:<\/p>\n

eclipse -nl en_US<\/p>\n

\u5c06\u542f\u52a8\u82f1\u6587\u8bed\u8a00, \u8fd9\u4e2a\u7279\u6027\u5728\u5b89\u88c5\u4e86\u56fd\u9645\u5316\u8bed\u8a00\u5305\u4ee5\u540e\u7279\u522b\u6709\u7528, \u53ef\u4ee5\u65b9\u4fbf\u7684\u5207\u6362\u5404\u4e2a\u8bed\u8a00\u7684\u7248\u672c. \u6ce8\u610f IBM WSAD v5.1 \u4e5f\u652f\u6301\u8fd9\u4e2a\u529f\u80fd.<\/p>\n

<\/span><\/p>\n

\u8fd0\u884c Eclipse<\/span><\/h2>\n

\u5c06 Eclipse \u9a71\u52a8\u7a0b\u5e8f\u5b89\u88c5\uff08\u89e3\u538b\u7f29\uff09\u5230\u67d0\u4e2a\u76ee\u5f55\uff08\u4f8b\u5982\uff0cc:\\eclipse\uff09\u4e2d\u4e4b\u540e\uff0c\u901a\u8fc7\u8fd0\u884c\u9876\u7ea7\u5b89\u88c5\u76ee\u5f55\u4e2d\u7684 Eclipse \u53ef\u6267\u884c\u6587\u4ef6\u6765\u542f\u52a8\"\u5de5\u4f5c\u53f0\"\u3002\u5728 Windows \u7cfb\u7edf\u4e0a\uff0c\u8be5\u53ef\u6267\u884c\u6587\u4ef6\u79f0\u4e3a eclipse.exe\uff0c\u800c\u5728 Linux \u7cfb\u7edf\u4e0a\u79f0\u4e3a eclipse\u3002\u6ce8\u610f\uff1a<\/strong>\u4e0b\u5217\u8ba8\u8bba\u63cf\u8ff0 Windows \u7cfb\u7edf\u4e0a\u7684\u8bbe\u7f6e\u3002Linux \u4e0a\u7684\u8bbe\u7f6e\u662f\u76f8\u4f3c\u7684\u3002<\/span><\/p>\n

\u5982 \u679c\u60a8\u6ca1\u6709\u53e6\u884c\u6307\u5b9a\uff0c\u5219\u5e73\u53f0\u5c06\u7f3a\u7701\u5de5\u4f5c\u533a\u76ee\u5f55\u521b\u5efa\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5144\u5f1f\u76ee\u5f55\uff08\u4f8b\u5982 c:\\eclipse\\workspace\uff09\u3002\u6b64\u5de5\u4f5c\u533a\u76ee\u5f55\u7528\u4f5c\u9879\u76ee\u7684\u7f3a\u7701\u5185\u5bb9\u533a\uff0c\u8fd8\u7528\u4e8e\u4fdd\u5b58\u4efb\u4f55\u5fc5\u9700\u7684\u5143\u6570\u636e\u3002\u8981\u8fdb\u884c\u5171\u4eab\u5b89\u88c5\u6216\u591a\u5de5\u4f5c\u533a\u5b89\u88c5\uff0c\u5e94\u660e\u786e\u6307 \u51fa\u5de5\u4f5c\u533a\u7684\u4f4d\u7f6e\u800c\u4e0d\u662f\u4f7f\u7528\u7f3a\u7701\u503c\u3002\u6709\u4e24\u79cd\u63a7\u5236\u5de5\u4f5c\u533a\u4f4d\u7f6e\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u6216\u4f7f\u7528 -data \u547d\u4ee4\u884c\u81ea\u53d8\u91cf\u3002<\/span><\/p>\n

\u5c06\u5de5\u4f5c\u533a\u4f4d\u7f6e\u8bbe\u7f6e\u4e3a\u5728\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u5185<\/span><\/h4>\n

\u5728\u6b64\u65b9\u6848\u4e2d\uff0c\u5de5\u4f5c\u533a\u4f4d\u7f6e\u5c06\u662f\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u4e2d\u79f0\u4e3a workspace \u7684\u76ee\u5f55\u3002<\/span><\/p>\n

\u5b9e\u73b0\u6b64\u76ee\u7684\u6700\u5bb9\u6613\u7684\u65b9\u6cd5\u53ef\u80fd\u662f\u4f7f\u7528\u4e0b\u5217\u6b65\u9aa4\u6765\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\uff1a<\/span><\/p>\n

    \n
  1. \u5bfc\u822a\u5230 Windows \u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u7684 eclipse.exe \u5e76\u4f7f\u7528\u53f3\u952e\u62d6\u52a8\u6765\u521b\u5efa eclipse.exe \u7684\u5feb\u6377\u65b9\u5f0f\u3002<\/span><\/li>\n
  2. \u7f16\u8f91\u5feb\u6377\u65b9\u5f0f\u7684\u5c5e\u6027\uff0c\u4ee5\u4f7f\u542f\u52a8\u4f4d\u7f6e\uff1a<\/strong>\u5b57\u6bb5\u6807\u8bc6\u5de5\u4f5c\u533a\u4f4d\u7f6e\u7684\u7236\u76ee\u5f55\uff08\u4f8b\u5982\uff0cc:\\users\\robert\uff09\u3002<\/span><\/li>\n
  3. \u5173\u95ed\u5c5e\u6027\u5bf9\u8bdd\u6846\u5e76\u53cc\u51fb\u5feb\u6377\u65b9\u5f0f\uff08\u5982\u679c\u63d0\u4f9b\u7684\u76ee\u5f55\u4e3a c:\\users\\robert\uff0c\u5219\u5de5\u4f5c\u533a\u4f4d\u7f6e\u5c06\u4e3a c:\\users\\robert\\workspace\uff09\u3002<\/span><\/li>\n<\/ol>\n

    \u5f53\u7136\uff0c\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26\uff08\u901a\u8fc7\u5c06\u76ee\u5f55\u5207\u6362\u4e3a\u5de5\u4f5c\u533a\u7236\u76ee\u5f55\u7136\u540e\u8fd0\u884c eclipse.exe\uff09\u6765\u83b7\u5f97\u540c\u6837\u7684\u6548\u679c\u3002<\/span><\/p>\n

    \u4f7f\u7528 -data \u8bbe\u7f6e\u5de5\u4f5c\u533a\u7684\u7279\u5b9a\u4f4d\u7f6e<\/span><\/h4>\n

    \u8981\u4f7f\u7528 -data \u547d\u4ee4\u884c\u81ea\u53d8\u91cf\uff0c\u53ea\u8981\u5c06 -data your_workspace_location\uff08\u4f8b\u5982\uff0c-data c:\\users\\robert\\myworkspace\uff09\u6dfb\u52a0\u81f3\u5feb\u6377\u65b9\u5f0f\u5c5e\u6027\u4e2d\u7684\u76ee\u6807<\/strong>\u5b57\u6bb5\u6216\u663e\u5f0f\u5730\u5c06\u5b83\u5305\u62ec\u5728\u547d\u4ee4\u884c\u4e0a\u3002<\/span><\/p>\n

    \u4f7f\u7528 -vm \u8bbe\u7f6e java VM<\/span><\/h4>\n

    \u5efa \u8bae\u663e\u5f0f\u6307\u5b9a\u5728\u8fd0\u884c Eclipse \u65f6\u8981\u4f7f\u7528\u54ea\u4e2a Java VM\u3002\u4f7f\u7528 -vm \u547d\u4ee4\u884c\u81ea\u53d8\u91cf\uff08\u4f8b\u5982\uff0c-vm c:\\jre\\bin\\javaw.exe\uff09\u53ef\u4ee5\u5b9e\u73b0\u6b64\u76ee\u7684\u3002\u5982\u679c\u4e0d\u4f7f\u7528 -vm\uff0c\u5219 Eclipse \u5c06\u4f7f\u7528\u5728 O\/S \u8def\u5f84\u4e0a\u627e\u5230\u7684\u4e00\u4e2a Java VM\u3002\u5f53\u5b89\u88c5\u5176\u5b83\u4ea7\u54c1\u65f6\uff0c\u5b83\u4eec\u53ef\u66f4\u6539\u60a8\u7684\u8def\u5f84\uff0c\u5bfc\u81f4\u5728\u4e0b\u4e00\u6b21\u542f\u52a8 Eclipse \u65f6\u4f7f\u7528\u53e6\u4e00 Java VM\u3002<\/span><\/p>\n

    \u8fd0\u884c Eclipse \u4e2d\u7684\u9ad8\u7ea7\u4e3b\u9898<\/span><\/h3>\n

    Eclipse \u53ef\u6267\u884c\u6587\u4ef6\u53ca\u5e73\u53f0\u672c\u8eab\u63d0\u4f9b\u4e86\u4eba\u4eec\u611f\u5174\u8da3\u7684\u5f00\u53d1\u6216\u8c03\u8bd5 Eclipse \u5404\u90e8\u4ef6\u7684\u8bb8\u591a\u6267\u884c\u9009\u9879\u3002\u8fd0\u884c Eclipse \u53ef\u6267\u884c\u6587\u4ef6\u7684\u4e00\u822c\u683c\u5f0f\u662f\uff1a<\/span><\/p>\n

    \n
    eclipse [platform options] [-vmargs [Java VM arguments]]<\/span><\/pre>\n<\/blockquote>\n

    <><><><><><>Eclipse \u542f\u52a8\u53c2\u6570 <><><><><><>\u547d\u4ee4 \u63cf\u8ff0<\/strong> <><><><><>\u63cf\u8ff0<\/strong><\/span><\/p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    \n
    \u542f\u52a8\u53c2\u6570<\/span><\/pre>\n<\/td>\n
    \u8be6\u7ec6\u8bf4\u660e<\/span><\/td>\n\u7248\u672c<\/span><\/td>\n<\/tr>\n
    \n
    -arch<\/strong> architecture<\/span><\/pre>\n<\/td>\n
    \u5b9a \u4e49 Eclipse \u5e73\u53f0\u5728\u5176\u4e0a\u8fd0\u884c\u7684\u5904\u7406\u5668\u4f53\u7cfb\u7ed3\u6784\u3002Eclipse \u5e73\u53f0\u901a\u5e38\u4f7f\u7528 Java os.arch \u5c5e\u6027\u7684\u5e38\u7528\u503c\u6765\u8ba1\u7b97\u6700\u4f73\u8bbe\u7f6e\u3002\u5982\u679c\u5728\u6b64\u5904\u6307\u5b9a\u8be5\u9879\uff0c\u5219\u8fd9\u662f Eclipse \u5e73\u53f0\u4f7f\u7528\u7684\u503c\u3002\u6b64\u5904\u6307\u5b9a\u7684\u503c\u53ef\u4f5c\u4e3a BootLoader.getOSArch() \u7528\u4e8e\u63d2\u4ef6\u3002\u793a\u4f8b\u503c\u6709\uff1a\"x86\"\u3001\"sparc\"\u3001\"PA-RISC\"\u548c\"ppc\"\u3002<\/span><\/td>\n2.0<\/span><\/td>\n<\/tr>\n
    \n
    -application<\/strong> applicationId<\/span><\/pre>\n<\/td>\n
    \u8981\u8fd0\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u5e94\u7528\u7a0b\u5e8f\u7531\u5411 org.eclipse.core.runtime.applications \u6269\u5c55\u70b9\u63d0\u4f9b\u6269\u5c55\u7684\u63d2\u4ef6\u6765\u58f0\u660e\u3002\u901a\u5e38\u4e0d\u9700\u8981\u6b64\u81ea\u53d8\u91cf\u3002\u5982\u679c\u6307\u5b9a\u4e86\u6b64\u9879\uff0c\u5219\u8be5\u503c\u4f1a\u8986\u76d6\u914d\u7f6e\u63d0\u4f9b\u7684\u503c\u3002\u5982\u679c\u4e0d\u6307\u5b9a\u6b64\u9879\uff0c\u5219\u4f1a\u8fd0\u884c\"Eclipse \u5de5\u4f5c\u53f0\"\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -boot<\/strong> bootJarURL<\/span><\/pre>\n<\/td>\n
    \uff08\u5efa\u8bae\u4e0d\u4f7f\u7528\uff1b\u7528 -configuration \u4ee3\u66ff\uff1b\u652f\u6301 1.0 \u517c\u5bb9\uff09<\/em>\u3002Eclipse \u5e73\u53f0\u7684\u5f15\u5bfc\u63d2\u4ef6\u4ee3\u7801\uff08boot.jar\uff09\u7684\u4f4d\u7f6e\uff0c\u8868\u793a\u4e3a URL\u3002\u5982\u679c\u6307\u5b9a\u6b64\u9879\uff0c\u5219\u4f1a\u7528\u5b83\u6765\u4e3a\u88c5\u5165 Eclipse \u5e73\u53f0\u5f15\u5bfc\u7a0b\u5e8f\u7c7b\u88c5\u5165\u5668\u7684\u7c7b\u88c5\u5165\u5668\u8bbe\u7f6e\u7c7b\u8def\u5f84\u3002\u4ec5\u5f53\u66f4\u6539 startup.jar \u548c boot.jar \u7684\u76f8\u5bf9\u4f4d\u7f6e\u65f6\u624d\u9700\u8981\u5b83\u3002\u6ce8\u610f\uff0c\u4e0d\u5141\u8bb8\u4f7f\u7528\u76f8\u5bf9 URL\u3002<\/span><\/td>\n*1.0<\/span><\/td>\n<\/tr>\n
    \n
    -classloaderproperties<\/strong> [file]<\/span><\/pre>\n<\/td>\n
    \u5982\u679c\u6307\u5b9a\u7684\u8bdd\uff0c\u5219\u4f7f\u7528\u7ed9\u5b9a\u4f4d\u7f6e\u5904\u7684\u7c7b\u88c5\u5165\u5668\u5c5e\u6027\u6587\u4ef6\u6765\u6fc0\u6d3b\u5e73\u53f0\u7c7b\u7c7b\u88c5\u5165\u5668\u589e\u5f3a\u3002\u6587\u4ef6\u81ea\u53d8\u91cf\u53ef\u4ee5\u662f\u6587\u4ef6\u8def\u5f84\u6216 URL\u3002\u6ce8\u610f\uff0c\u4e0d\u5141\u8bb8\u4f7f\u7528\u76f8\u5bf9 URL\u3002\u5355\u51fb\u6b64\u5904\u4ee5\u83b7\u5f97\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\u3002<\/span><\/td>\n2.0.2<\/span><\/td>\n<\/tr>\n
    \n
    -configuration<\/strong> configurationFileURL<\/span><\/pre>\n<\/td>\n
    Eclipse \u5e73\u53f0\u914d\u7f6e\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u8868\u793a\u4e3a URL\u3002\u914d\u7f6e\u6587\u4ef6\u786e\u5b9a Eclipse \u5e73\u53f0\u3001\u53ef\u7528\u63d2\u4ef6\u96c6\u548c\u4e3b\u8981\u529f\u80fd\u90e8\u4ef6\u7684\u4f4d\u7f6e\u3002\u6ce8\u610f\uff0c\u4e0d\u5141\u8bb8\u4f7f\u7528\u76f8\u5bf9 URL\u3002\u5f53\u5b89\u88c5\u6216\u66f4\u65b0 Eclipse \u5e73\u53f0\u65f6\u914d\u7f6e\u6587\u4ef6\u88ab\u5199\u81f3\u6b64\u4f4d\u7f6e\u3002<\/span><\/td>\n2.0<\/span><\/td>\n<\/tr>\n
    \n
    -consolelog<\/strong><\/span><\/pre>\n<\/td>\n
    \u5c06 Eclipse \u5e73\u53f0\u7684\u9519\u8bef\u65e5\u5fd7\u955c\u50cf\u5230\u7528\u6765\u8fd0\u884c Eclipse \u7684\u63a7\u5236\u53f0\u3002\u4e0e -debug \u7ec4\u5408\u65f6\u5f88\u65b9\u4fbf\u4f7f\u7528\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -data<\/strong> workspacePath<\/span><\/pre>\n<\/td>\n
    \u8981\u8fd0\u884c Eclipse \u5e73\u53f0\u7684\u5de5\u4f5c\u533a\u7684\u8def\u5f84\u3002\u5de5\u4f5c\u533a\u4f4d\u7f6e\u4e5f\u662f\u9879\u76ee\u7684\u7f3a\u7701\u4f4d\u7f6e\u3002\u76f8\u5bf9\u4e8e\u4ece\u4e2d\u542f\u52a8 eclipse \u7684\u76ee\u5f55\u6765\u89e3\u91ca\u76f8\u5bf9\u8def\u5f84\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -debug<\/strong> [optionsFile]<\/span><\/pre>\n<\/td>\n
    \u5c06\u5e73\u53f0\u7f6e\u4e8e\u8c03\u8bd5\u65b9\u5f0f\uff0c\u5e76\u4ece\u7ed9\u5b9a\u4f4d\u7f6e\u5904\u7684\u6587\u4ef6\u88c5\u5165\u8c03\u8bd5\u9009\u9879\uff08\u5982\u679c\u6307\u5b9a\u7684\u8bdd\uff09\u3002\u6b64\u6587\u4ef6\u6307\u793a\u54ea\u4e9b\u8c03\u8bd5\u70b9\u53ef\u7528\u4e8e\u63d2\u4ef6\u4ee5\u53ca\u662f\u5426\u5df2\u542f\u7528\u5b83\u4eec\u3002\u5982\u679c\u672a\u7ed9\u51fa\u6587\u4ef6\u4f4d\u7f6e\uff0c\u5219\u5e73\u53f0\u5728\u542f\u52a8 eclipse \u7684\u76ee\u5f55\u4e2d\u67e5\u627e\u79f0\u4e3a\".options\"\u7684\u6587\u4ef6\u3002URL \u548c\u6587\u4ef6\u7cfb\u7edf\u8def\u5f84\u90fd\u53ef\u4f5c\u4e3a\u6587\u4ef6\u4f4d\u7f6e\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -dev<\/strong> [classpathEntries]<\/span><\/pre>\n<\/td>\n
    \u5c06 \u5e73\u53f0\u7f6e\u4e8e\u5f00\u53d1\u65b9\u5f0f\u3002\u5c06\u53ef\u9009\u7c7b\u8def\u5f84\u6761\u76ee\uff08\u7528\u9017\u53f7\u5206\u9694\u7684\u5217\u8868\uff09\u6dfb\u52a0\u81f3\u6bcf\u4e2a\u63d2\u4ef6\u7684\u8fd0\u884c\u65f6\u7c7b\u8def\u5f84\u3002\u4f8b\u5982\uff0c\u5f53\u5de5\u4f5c\u533a\u5305\u542b\u8981\u5f00\u53d1\u7684\u63d2\u4ef6\u65f6\uff0c\u6307\u5b9a -dev bin \u4f1a\u4e3a\u6bcf\u4e2a\u63d2\u4ef6\u9879\u76ee\u7684\u540d\u4e3a bin \u7684\u76ee\u5f55\u6dfb\u52a0\u7c7b\u8def\u5f84\u6761\u76ee\uff0c\u5141\u8bb8\u5728\u5176\u4e2d\u5b58\u50a8\u6700\u65b0\u751f\u6210\u7684\u7c7b\u6587\u4ef6\u3002\u9664\u53bb\u4e86\u5197\u4f59\u6216\u4e0d\u5b58\u5728\u7684\u7c7b\u8def\u5f84\u6761\u76ee\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -endsplash<\/strong> params<\/span><\/pre>\n<\/td>\n
    \u7528\u4e8e\u5728 Eclipse \u5e73\u53f0\u542f\u52a8\u5e76\u8fd0\u884c\u65f6\u5173\u95ed\u95ea\u5c4f\u7684\u5185\u90e8\u9009\u9879\u3002\u6b64\u9009\u9879\u5728\u95ea\u5c4f\u5904\u7406\u94fe\u4e2d\u4e0d\u540c\u7684\u4f4d\u7f6e\u6709\u4e0d\u540c\u7684\u8bed\u6cd5\u548c\u8bed\u4e49\u3002<\/span><\/td>\n2.0<\/span><\/td>\n<\/tr>\n
    \n
    -feature<\/strong> featureId<\/em><\/span><\/pre>\n<\/td>\n
    \u4e3b\u8981\u529f\u80fd\u90e8\u4ef6\u7684\u6807\u8bc6\u3002\u4e3b\u8981\u529f\u80fd\u90e8\u4ef6\u4e3a Eclipse \u7684\u5df2\u542f\u52a8\u5b9e\u4f8b\u63d0\u4f9b\u4e86\u4ea7\u54c1\u4e2a\u6027\uff0c\u5e76\u786e\u5b9a\u4f7f\u7528\u7684\u4ea7\u54c1\u5b9a\u5236\u4fe1\u606f\u3002<\/span><\/td>\n2.0<\/span><\/td>\n<\/tr>\n
    \n
    -keyring<\/strong> keyringFilePath<\/span><\/pre>\n<\/td>\n
    \u78c1\u76d8\u4e0a\u6388\u6743\u6570\u636e\u5e93\uff08\u6216\"\u5bc6\u94a5\u73af\"\u6587\u4ef6\uff09\u7684\u4f4d\u7f6e\u3002\u6b64\u81ea\u53d8\u91cf\u5fc5\u987b\u4e0e -password \u9009\u9879\u914d\u5408\u4f7f\u7528\u3002\u76f8\u5bf9\u4e8e\u4ece\u4e2d\u542f\u52a8 eclipse \u7684\u76ee\u5f55\u6765\u89e3\u91ca\u76f8\u5bf9\u8def\u5f84\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -nl<\/strong> locale<\/span><\/pre>\n<\/td>\n
    \u5b9a \u4e49 Eclipse \u5e73\u53f0\u5728\u5176\u4e0a\u8fd0\u884c\u7684\u8bed\u8a00\u73af\u5883\u7684\u540d\u79f0\u3002Eclipse \u5e73\u53f0\u901a\u5e38\u81ea\u52a8\u8ba1\u7b97\u6700\u4f73\u8bbe\u7f6e\u3002\u5982\u679c\u5728\u6b64\u5904\u6307\u5b9a\u8be5\u9879\uff0c\u5219\u8fd9\u662f Eclipse \u5e73\u53f0\u4f7f\u7528\u7684\u503c\u3002\u6b64\u5904\u6307\u5b9a\u7684\u503c\u53ef\u4f5c\u4e3a BootLoader.getNL() \u7528\u4e8e\u63d2\u4ef6\u3002\u793a\u4f8b\u503c\u6709\uff1a\"en_US\"\u548c\"fr_FR_EURO\"\u3002<\/span><\/td>\n2.0<\/span><\/td>\n<\/tr>\n
    \n
    -nolazyregistrycacheloading<\/strong><\/span><\/pre>\n<\/td>\n
    \u53d6\u6d88\u6fc0\u6d3b\u88c5\u5165\u4f18\u5316\u7684\u5e73\u53f0\u63d2\u4ef6\u6ce8\u518c\u8868\u9ad8\u901f\u7f13\u5b58\u3002\u7f3a\u7701\u60c5\u51b5\u4e0b\uff0c\u4ec5\u5f53\u9700\u8981\u65f6\u624d\u4ece\u6ce8\u518c\u8868\u9ad8\u901f\u7f13\u5b58\uff08\u53ef\u7528\u65f6\uff09\u4e2d\u88c5\u5165\u6269\u5c55\u7684\u914d\u7f6e\u5143\u7d20\uff0c\u4ee5\u51cf\u5c11\u5185\u5b58\u5360\u7528\u3002\u6b64\u9009\u9879\u5c06\u5728\u542f\u52a8\u65f6\u5f3a\u5236\u5b8c\u5168\u88c5\u5165\u6ce8\u518c\u8868\u9ad8\u901f\u7f13\u5b58\u3002<\/span><\/td>\n2.1<\/span><\/td>\n<\/tr>\n
    \n
    -noregistrycache<\/strong><\/span><\/pre>\n<\/td>\n
    \u7ed5\u8fc7\u8bfb\u5199\u5185\u90e8\u63d2\u4ef6\u6ce8\u518c\u8868\u9ad8\u901f\u7f13\u5b58\u6587\u4ef6\u3002<\/span><\/td>\n2.0<\/span><\/td>\n<\/tr>\n
    \n
    -nosplash<\/strong><\/span><\/pre>\n<\/td>\n
    \u8fd0\u884c\u5e73\u53f0\u800c\u4e0d\u663e\u793a\u95ea\u5c4f\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -os<\/strong> operatingSystem<\/span><\/pre>\n<\/td>\n
    \u5b9a \u4e49 Eclipse \u5e73\u53f0\u5728\u5176\u4e0a\u8fd0\u884c\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002Eclipse \u5e73\u53f0\u901a\u5e38\u4f7f\u7528 Java os.name \u5c5e\u6027\u7684\u5e38\u7528\u503c\u6765\u8ba1\u7b97\u6700\u4f73\u8bbe\u7f6e\u3002\u5982\u679c\u5728\u6b64\u5904\u6307\u5b9a\u8be5\u9879\uff0c\u5219\u8fd9\u662f Eclipse \u5e73\u53f0\u4f7f\u7528\u7684\u503c\u3002\u6b64\u5904\u6307\u5b9a\u7684\u503c\u53ef\u4f5c\u4e3a BootLoader.getOS() \u7528\u4e8e\u63d2\u4ef6\uff0c\u5e76\u7528\u4e8e\u89e3\u6790\u63d2\u4ef6\u6e05\u5355\u6587\u4ef6\u4e2d\u63d0\u53ca\u7684\u8def\u5f84\u4e2d $os$ \u53d8\u91cf\u7684\u51fa\u73b0\u3002\u793a\u4f8b\u503c\u6709\uff1a\"win32\"\u3001\"linux\"\u3001\"hpux\"\u3001\"solaris\"\u548c\"aix\"\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -password<\/strong> password<\/span><\/pre>\n<\/td>\n
    \u6388\u6743\u6570\u636e\u5e93\u7684\u5bc6\u7801\u3002\u4e0e -keyring \u9009\u9879\u914d\u5408\u4f7f\u7528\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -perspective<\/strong> perspectiveId<\/span><\/pre>\n<\/td>\n
    \u542f\u52a8\u65f6\u8981\u5728\u6d3b\u52a8\u5de5\u4f5c\u53f0\u7a97\u53e3\u4e2d\u6253\u5f00\u7684\u900f\u89c6\u56fe\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u8be5\u53c2\u6570\uff0c\u5219\u5c06\u6253\u5f00\u5173\u95ed\u65f6\u6d3b\u52a8\u7684\u900f\u89c6\u56fe\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -plugincustomization<\/strong>\r\n\r\n   propertiesFile<\/span><\/pre>\n<\/td>\n
    \u5305\u542b\u63d2\u4ef6\u9996\u9009\u9879\u7f3a\u7701\u8bbe\u7f6e\u7684\u5c5e\u6027\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002\u8fd9\u4e9b\u7f3a\u7701\u8bbe\u7f6e\u8986\u76d6\u5728\u4e3b\u8981\u529f\u80fd\u90e8\u4ef6\u4e2d\u6307\u5b9a\u7684\u7f3a\u7701\u8bbe\u7f6e\u3002\u76f8\u5bf9\u4e8e\u4ece\u4e2d\u542f\u52a8 eclipse \u7684\u76ee\u5f55\u6765\u89e3\u91ca\u76f8\u5bf9\u8def\u5f84\u3002<\/span><\/td>\n2.0<\/span><\/td>\n<\/tr>\n
    \n
    -plugins<\/strong> pluginsFileURL<\/span><\/pre>\n<\/td>\n
    \uff08\u5efa\u8bae\u4e0d\u4f7f\u7528\uff1b\u7528 -configuration \u4ee3\u66ff\uff1b\u652f\u6301 1.0 \u517c\u5bb9\uff09\u3002<\/em> \u6307\u5b9a Eclipse \u5e73\u53f0\u67e5\u627e\u63d2\u4ef6\u7684\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u8868\u793a\u4e3a URL\u3002\u8be5\u6587\u4ef6\u4e3a\u5c5e\u6027\u6587\u4ef6\u683c\u5f0f\uff0c\u5176\u4e2d\u952e\u662f\u4efb\u610f\u7528\u6237\u5b9a\u4e49\u540d\u79f0\uff0c\u503c\u662f\u6307\u5411 plugin.xml \u6587\u4ef6\u7684\u663e\u5f0f\u8def\u5f84\u6216\u6307\u5411\u5305\u542b\u63d2\u4ef6\u7684\u76ee\u5f55\u7684\u8def\u5f84\u7684\u7528\u9017\u53f7\u5206\u9694\u7684\u5217\u8868\u3002\u6ce8\u610f\uff0c\u4e0d\u5141\u8bb8\u4f7f\u7528\u76f8\u5bf9 URL\u3002\u5982\u679c\u6307\u5b9a\u6b64\u9879\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5bfc\u81f4\u521b\u5efa\u9002\u5f53\u7684\u4e34\u65f6\u914d\u7f6e\u3002<\/span><\/td>\n*1.0<\/span><\/td>\n<\/tr>\n
    \n
    -refresh<\/strong> <\/span><\/pre>\n<\/td>\n
    \u542f\u52a8\u65f6\u6267\u884c\u5de5\u4f5c\u533a\u7684\u5168\u5c40\u5237\u65b0\u7684\u9009\u9879\u3002\u8fd9\u5c06\u4f7f\u4ece\u4e0a\u6b21\u5e73\u53f0\u8fd0\u884c\u4ee5\u6765\u5728\u6587\u4ef6\u7cfb\u7edf\u4e2d\u6240\u505a\u7684\u4efb\u4f55\u66f4\u6539\u4e00\u81f4\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -showlocation<\/strong> <\/span><\/pre>\n<\/td>\n
    \u7528\u4e8e\u5728\u7a97\u53e3\u6807\u9898\u680f\u4e2d\u663e\u793a\u5de5\u4f5c\u533a\u7684\u4f4d\u7f6e\u7684\u9009\u9879\u3002\u5728\u53d1\u884c\u7248 2.0 \u4e2d\uff0c\u6b64\u9009\u9879\u4ec5\u4e0e -data \u547d\u4ee4\u884c\u81ea\u53d8\u91cf\u4e00\u8d77\u4f7f\u7528\u3002<\/span><\/td>\n2.0<\/span><\/td>\n<\/tr>\n
    \n
    -showsplash<\/strong> params<\/span><\/pre>\n<\/td>\n
    \u7528\u4e8e\u663e\u793a\u95ea\u5c4f\uff08\u7531\u53ef\u6267\u884c\u7684 Eclipse \u5e73\u53f0\u542f\u52a8\u5668\u6267\u884c\uff09\u7684\u5185\u90e8\u9009\u9879\u3002\u6b64\u9009\u9879\u5728\u95ea\u5c4f\u5904\u7406\u94fe\u4e2d\u4e0d\u540c\u7684\u4f4d\u7f6e\u6709\u4e0d\u540c\u7684\u8bed\u6cd5\u548c\u8bed\u4e49\u3002<\/span><\/td>\n2.0<\/span><\/td>\n<\/tr>\n
    \n
    -vm<\/strong> vmPath<\/span><\/pre>\n<\/td>\n
    \u8981\u7528\u6765\u8fd0\u884c Eclipse \u5e73\u53f0\u7684\"Java \u8fd0\u884c\u65f6\u73af\u5883\"\uff08JRE\uff09\u7684\u4f4d\u7f6e\u3002\u5982\u679c\u4e0d\u6307\u5b9a\u6b64\u9879\uff0c\u5219 JRE \u4f4d\u4e8e jre\uff08\u5b83\u662f Eclipse \u53ef\u6267\u884c\u6587\u4ef6\u7684\u5144\u5f1f\u76ee\u5f55\uff09\u3002\u76f8\u5bf9\u4e8e\u4ece\u4e2d\u542f\u52a8 eclipse \u7684\u76ee\u5f55\u6765\u89e3\u91ca\u76f8\u5bf9\u8def\u5f84\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n
    \n
    -ws<\/strong> windowSystem<\/span><\/pre>\n<\/td>\n
    \u5b9a \u4e49 Eclipse \u5e73\u53f0\u5728\u5176\u4e0a\u8fd0\u884c\u7684 Windows \u7cfb\u7edf\u3002Eclipse \u5e73\u53f0\u901a\u5e38\u4f7f\u7528 Java os.name \u5c5e\u6027\u7684\u5e38\u7528\u503c\u6765\u8ba1\u7b97\u6700\u4f73\u8bbe\u7f6e\u3002\u5982\u679c\u5728\u6b64\u5904\u6307\u5b9a\u8be5\u9879\uff0c\u5219\u8fd9\u662f Eclipse \u5e73\u53f0\u4f7f\u7528\u7684\u503c\u3002\u6b64\u5904\u6307\u5b9a\u7684\u503c\u53ef\u4f5c\u4e3a BootLoader.getWS() \u7528\u4e8e\u63d2\u4ef6\u3001\u7528\u4e8e\u914d\u7f6e SWT \u4ee5\u53ca\u7528\u4e8e\u89e3\u6790\u63d2\u4ef6\u6e05\u5355\u6587\u4ef6\u4e2d\u63d0\u53ca\u7684\u8def\u5f84\u4e2d $ws$ \u53d8\u91cf\u7684\u51fa\u73b0\u3002\u793a\u4f8b\u503c\u6709\uff1a\"win32\"\u3001\"motif\"\u548c\"gtk\"\u3002<\/span><\/td>\n1.0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

    \u5c06 -vmargs \u6761\u76ee\u540e\u9762\u7684\u6240\u6709\u81ea\u53d8\u91cf\uff08\u4f46\u4e0d\u5305\u62ec -vmargs\uff09\u4f5c\u4e3a\u865a\u62df\u673a\u81ea\u53d8\u91cf\uff08\u5373\uff0c\u5728\u8981\u8fd0\u884c\u7684\u7c7b\u7684\u524d\u9762\uff09\u76f4\u63a5\u4f20\u9012\u5230\u6240\u6307\u793a\u7684 Java VM\u3002\u6ce8\u610f\uff1a<\/strong>\u5982\u679c Eclipse \u542f\u52a8\u5728 Java vm \u81ea\u53d8\u91cf\uff08-vmargs\uff09\u4e4b\u540e\u63d0\u4f9b\u7684\u81ea\u53d8\u91cf\uff08\u4f8b\u5982\uff0c-data\uff09\uff0c\u5219 Eclipse \u5c06\u4e0d\u4f1a\u542f\u52a8\u5e76\u4e14\u60a8\u5c06\u63a5\u6536\u5230\"JVM \u5df2\u7ec8\u6b62\u3002\u51fa\u53e3\u4ee3\u7801\u4e3a 1\"\u7684\u9519\u8bef\u3002<\/span>
    \n<\/span> <\/p>\n

    \u5728\u4e0d\u540c\u7684 VM \u4e0a\u8fd0\u884c<\/span><\/h3>\n

    \u5728 J9 \u4e0a\u8fd0\u884c Eclipse<\/span><\/h4>\n

    \u5f53\u5728 J9 \u7248\u672c 1.5 \u4e0a\u8fd0\u884c Eclipse \u65f6\uff0c\u5efa\u8bae\u4f7f\u7528\u4ee5\u4e0b VM \u9009\u9879\uff1a<\/span><\/p>\n

    \n
    eclipse.exe [eclipse arguments] -vm path_to_j9w.exe \r\n\r\n            -vmargs -ms:32 -mm:2048 -mo:32768 -moi:32768 -mca:32 -mco:128 -mx:2000000<\/span><\/pre>\n<\/blockquote>\n

    \u5f53\u5728 J9 \u7248\u672c 2.0 \u4e0a\u8fd0\u884c Eclipse \u65f6\uff0cJ9W \u9009\u62e9\u7684\u7f3a\u7701\u81ea\u53d8\u91cf\u5e94\u4e3a\u5408\u9002\u7684\u9009\u9879\u3002\u4f46\u662f\uff0c\u8981\u8986\u76d6 Eclipse \u53ef\u6267\u884c\u6587\u4ef6\u4ee5\u5185\u90e8\u65b9\u5f0f\u81ea\u52a8\u8bbe\u7f6e\u7684\u53c2\u6570\uff0c\u5fc5\u987b\u6307\u5b9a -vmargs \u4e0d\u5e26\u4efb\u4f55\u53c2\u6570\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n

    \n
    eclipse.exe [eclipse arguments] -vm path_to_j9w.exe -vmargs<\/span><\/pre>\n<\/blockquote>\n

    \u6709\u5173\u8fdb\u4e00\u6b65\u4fe1\u606f\uff0c\u53c2\u8003 J9 VM \u6587\u6863\u548c\u5e2e\u52a9\u3002<\/span><\/p>\n

    \u5728 IBM Developer Kit, Java(TM) Technology Edition VM \u4e0a\u8fd0\u884c Eclipse<\/span><\/h4>\n

    IBM Developer Kit, Java(TM) Technology Edition 1.3 Linux \u7684\u7f3a\u7701 VM \u8bbe\u7f6e\u9002\u5408\u8fdb\u884c\u521d\u671f\u7814\u7a76\u5de5\u4f5c\uff0c\u4f46\u5728\u8fdb\u884c\u5927\u578b\u5f00\u53d1\u65f6\u662f\u4e0d\u591f\u7684\u3002\u5bf9\u4e8e\u5927\u578b\u5f00\u53d1\uff0c\u5e94\u4fee\u6539 VM \u81ea\u53d8\u91cf\u4ee5\u4f7f\u6709\u66f4\u591a\u7684\u5806\u53ef\u7528\u3002\u4f8b\u5982\uff0c\u4e0b\u5217\u8bbe\u7f6e\u5c06\u5141\u8bb8 Java \u5806\u589e\u5927\u4e3a 256MB\uff1a<\/span><\/p>\n

    \n
    -vmargs -Xmx256M \r\n\r\n<\/span><\/pre>\n<\/blockquote>\n

    Running Eclipse<\/span><\/h2>\n

    After you install (unp) the Eclipse driver in a directory (such as c:\\eclipse), start the Workbench by running the Eclipse executable file found in the top level install directory. The executable file is called eclipse.exe on Windows systems and eclipse on Linux systems. Note:<\/strong> the following discussion describes setting up on Windows systems. Setup on Linux is analogous.<\/span><\/p>\n

    If you do not specify otherwise, the platform creates a default workspace directory as a sibling of the executable (for example, c:\\eclipse\\workspace). This workspace directory is used as the default content area for your projects as well as for holding any required metadata. For shared or multi-workspace installs you should explicitly state the location of your workspace rather than using the default. There are two ways to control the location of your workspace: using the current working directory or using the -data command line argument.<\/span><\/p>\n

    Setting the workspace location to be inside the current working directory<\/span><\/h4>\n

    In this scenario, the workspace location will be a directory called workspace inside the current working directory.<\/span><\/p>\n

    Perhaps the easiest way of doing this is to create a shortcut using the following steps:<\/span><\/p>\n

      \n
    1. Navigate to eclipse.exe in the Windows Explorer and using a right button drag, create a shortcut to eclipse.exe.<\/span><\/li>\n
    2. Edit the properties of the shortcut such that the Start in:<\/strong><\/span> field identifies the parent directory of your workspace location (for example, c:\\users\\robert).<\/li>\n
    3. Close the properties dialog and double-click on the shortcut (if the provided directory was c:\\users\\robert, the workspace location would be c:\\users\\robert\\workspace).<\/span><\/li>\n<\/ol>\n

      Of course you can get the same effect using a command prompt by changing directory to your workspace parent's directory and then running eclipse.exe.<\/span><\/p>\n

      Setting a specific location for the workspace with -data<\/span><\/h4>\n

      To use the -data command line argument, simply add -data your_workspace_location (for example, -data c:\\users\\robert\\myworkspace) to the Target<\/strong> field in the shortcut properties, or include it explicitly on your command line.<\/span><\/p>\n

      Setting the java VM using -vm<\/span><\/h4>\n

      It is recommended that you explicitly specify which Java VM to use when running Eclipse. This is achieved with the -vm command line argument (for example, -vm c:\\jre\\bin\\javaw.exe). If you don't use -vm, Eclipse will use the first Java VM found on the O\/S path. When you install other products, they may change your path, resulting in a different Java VM being used when you next launch Eclipse.<\/span><\/p>\n

      Advanced Topics in Running Eclipse<\/span><\/h3>\n

      The Eclipse executable and the platform itself offer a number of execution options of interest to people developing or debugging parts of Eclipse. The general form of running the Eclipse executable is:<\/span><\/p>\n

      \n
      eclipse [platform options] [-vmargs [Java VM arguments]]<\/span><\/pre>\n<\/blockquote>\n

      All arguments following (but not including) the -vmargs entry are passed directly through to the indicated Java VM as virtual machine arguments (that is, before the class to run). Note:<\/strong> If an Eclipse startup argument, such as -data, is provided after the Java vm arguments (-vmargs), Eclipse will not start and you will receive a \"JVM terminated. Exit code=1\" error.<\/span><\/p>\n

      Running on Different VMs<\/span><\/h3>\n

      Running Eclipse on J9<\/span><\/h4>\n

      When running Eclipse on J9 version 1.5, it is recommended that you use the following VM options:<\/span><\/p>\n

      \n
      eclipse.exe [eclipse arguments] -vm path_to_j9w.exe \r\n\r\n            -vmargs -ms:32 -mm:2048 -mo:32768 -moi:32768 -mca:32 -mco:128 -mx:2000000<\/span><\/pre>\n<\/blockquote>\n

      When running Eclipse on J9 version 2.0, the default arguments chosen by J9W should be suitable. However, to override the parameters which are automatically set internally by the Eclipse executable, you must specify -vmargs with no following arguments as follows:<\/span><\/p>\n

      \n
      eclipse.exe [eclipse arguments] -vm path_to_j9w.exe -vmargs<\/span><\/pre>\n<\/blockquote>\n

      Please refer to the J9 VM documentation and help for further information.<\/span><\/p>\n

      Running Eclipse on the IBM Developer Kit, Java(TM) Technology Edition VM<\/span><\/h4>\n

      The default VM settings for IBM Developer Kit, Java(TM) Technology Edition 1.3 Linux work well for initial exploration, but are not sufficient for large scale development. For large scale development you should modify your VM arguments to make more heap available. For example, the following setting will allow the Java heap to grow to 256MB:<\/span><\/p>\n

      \n
      -vmargs -Xmx256M <\/span><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"eclipse\u542f\u52a8\u53c2\u6570\u8bbe\u7f6e\u5927\u5168\u8fd0\u884ceclipse\u65f6,\u5e38\u5e38\u62a5\u544a\u5806\u5185\u5b58\u51fa\u9519\u7b49\u95ee\u9898!\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6eeclipse\u542f\u52a8\u53c2\u6570\u6765\u4f7f\u95ee\u9898\u7f13\u89e3\u5305\u62ec\u82f1\u6587\u7248\u672c\u548c\u4e2d...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/3555"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=3555"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/3555\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=3555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=3555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=3555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}