{"id":998,"date":"2016-06-05T10:36:16","date_gmt":"2016-06-05T10:36:16","guid":{"rendered":"http:\/\/guoh.ai\/lifelog\/?p=998"},"modified":"2026-02-08T09:08:14","modified_gmt":"2026-02-08T09:08:14","slug":"jshell-launch-error-on-os-x-ei-capitan","status":"publish","type":"post","link":"https:\/\/guoh.ai\/lifelog\/2016\/06\/jshell-launch-error-on-os-x-ei-capitan\/","title":{"rendered":"Jshell \u542f\u52a8\u9519\u8bef build 9-ea+121"},"content":{"rendered":"<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nException in thread &quot;main&quot; java.lang.InternalError: Launching execution engine threw: Failed remote launch: com.sun.jdi.CommandLineLaunch (defaults: home=\/Library\/Java\/JavaVirtualMachines\/jdk-9.jdk\/Contents\/Home, options=, main=, suspend=true, quote=&quot;, vmexec=java) -- {home=home=\/Library\/Java\/JavaVirtualMachines\/jdk-9.jdk\/Contents\/Home, options=options=, main=main=jdk.internal.jshell.remote.RemoteAgent 57696, suspend=suspend=true, quote=quote=&quot;, vmexec=vmexec=java}\nat jdk.jshell.JShell.executionControl(jdk.jshell@9-ea\/JShell.java:714)\nat jdk.jshell.Unit.classesToLoad(jdk.jshell@9-ea\/Unit.java:275)\nat jdk.jshell.Eval.lambda$compileAndLoad$15(jdk.jshell@9-ea\/Eval.java:580)\nat java.util.stream.ReferencePipeline$7$1.accept(java.base@9-ea\/ReferencePipeline.java:269)\nat java.util.ArrayList$ArrayListSpliterator.forEachRemaining(java.base@9-ea\/ArrayList.java:1477)\nat java.util.stream.AbstractPipeline.copyInto(java.base@9-ea\/AbstractPipeline.java:484)\nat java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-ea\/AbstractPipeline.java:474)\nat java.util.stream.ReduceOps$ReduceOp.evaluateSequential(java.base@9-ea\/ReduceOps.java:913)\nat java.util.stream.AbstractPipeline.evaluate(java.base@9-ea\/AbstractPipeline.java:234)\nat java.util.stream.ReferencePipeline.collect(java.base@9-ea\/ReferencePipeline.java:511)\nat jdk.jshell.Eval.compileAndLoad(jdk.jshell@9-ea\/Eval.java:581)\nat jdk.jshell.Eval.declare(jdk.jshell@9-ea\/Eval.java:441)\n1 127.0.0.1 Hais-MacBook-Pro\nat jdk.jshell.Eval.processMethod(jdk.jshell@9-ea\/Eval.java:372)\nat jdk.jshell.Eval.eval(jdk.jshell@9-ea\/Eval.java:127)\nat jdk.jshell.JShell.eval(jdk.jshell@9-ea\/JShell.java:393)\nat jdk.internal.jshell.tool.JShellTool.processCompleteSource(jdk.jshell@9-ea\/JShellTool.java:2114)\nat jdk.internal.jshell.tool.JShellTool.processSource(jdk.jshell@9-ea\/JShellTool.java:2102)\nat jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(jdk.jshell@9-ea\/JShellTool.java:789)\nat jdk.internal.jshell.tool.JShellTool.run(jdk.jshell@9-ea\/JShellTool.java:769)\nat jdk.internal.jshell.tool.JShellTool.startUpRun(jdk.jshell@9-ea\/JShellTool.java:706)\nat jdk.internal.jshell.tool.JShellTool.resetState(jdk.jshell@9-ea\/JShellTool.java:663)\nat jdk.internal.jshell.tool.JShellTool.start(jdk.jshell@9-ea\/JShellTool.java:483)\nat jdk.internal.jshell.tool.JShellTool.start(jdk.jshell@9-ea\/JShellTool.java:462)\nat jdk.internal.jshell.tool.JShellTool.main(jdk.jshell@9-ea\/JShellTool.java:452)\nCaused by: java.lang.InternalError: Failed remote launch: com.sun.jdi.CommandLineLaunch (defaults: home=\/Library\/Java\/JavaVirtualMachines\/jdk-9.jdk\/Contents\/Home, options=, main=, suspend=true, quote=&quot;, vmexec=java) -- {home=home=\/Library\/Java\/JavaVirtualMachines\/jdk-9.jdk\/Contents\/Home, options=options=, main=main=jdk.internal.jshell.remote.RemoteAgent 57696, suspend=suspend=true, quote=quote=&quot;, vmexec=vmexec=java}\nat jdk.internal.jshell.jdi.JDIConnection.reportLaunchFail(jdk.jshell@9-ea\/JDIConnection.java:353)\nat jdk.internal.jshell.jdi.JDIConnection.launchTarget(jdk.jshell@9-ea\/JDIConnection.java:319)\nat jdk.internal.jshell.jdi.JDIConnection.open(jdk.jshell@9-ea\/JDIConnection.java:120)\nat jdk.internal.jshell.jdi.JDIEnv.init(jdk.jshell@9-ea\/JDIEnv.java:49)\nat jdk.internal.jshell.jdi.JDIExecutionControl.jdiGo(jdk.jshell@9-ea\/JDIExecutionControl.java:425)\nat jdk.internal.jshell.jdi.JDIExecutionControl.start(jdk.jshell@9-ea\/JDIExecutionControl.java:95)\nat jdk.jshell.JShell.executionControl(jdk.jshell@9-ea\/JShell.java:712)\n... 23 more\nCaused by: com.sun.jdi.connect.VMStartException: VM initialization failed for: \/Library\/Java\/JavaVirtualMachines\/jdk-9.jdk\/Contents\/Home\/bin\/java -Xdebug -Xrunjdwp:transport=dt_socket,address=Hais-MacBook-Pro:57697,suspend=y jdk.internal.jshell.remote.RemoteAgent 57696\nat com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(jdk.jdi@9-ea\/AbstractLauncher.java:193)\nat com.sun.tools.jdi.AbstractLauncher.launch(jdk.jdi@9-ea\/AbstractLauncher.java:132)\nat com.sun.tools.jdi.SunCommandLineLauncher.launch(jdk.jdi@9-ea\/SunCommandLineLauncher.java:225)\nat jdk.internal.jshell.jdi.JDIConnection.launchTarget(jdk.jshell@9-ea\/JDIConnection.java:312)\n... 28 more\n<\/pre>\n<p>https:\/\/bugs.openjdk.java.net\/browse\/JDK-8131029<\/p>\n<p>\u8fd9\u4e2a\u95ee\u9898\u5728\u65b0\u7248\u7684\u5df2\u7ecf\u88ab\u4fee\u590d\u4e86\uff0c\u4f46\u662f\u5982\u679c\u78b0\u5230\u4e86\uff0c\u53ef\u4ee5\u4fee\u6539 \/etc\/hosts \u6765\u7ed5\u8fc7(\u589e\u52a0\u4e00\u4e2a\u672c\u5730\u8ba1\u7b97\u673a\u540d\u5b57\u7684 loop ip)<\/p>\n<p>\u672c\u5730\u8ba1\u7b97\u673a\u540d\u5b57\u53ef\u4ee5\u7528<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">uname -n<\/pre>\n<p>\u6765\u67e5\u770b<\/p>\n<p>\u53c2\u8003\u8fd9\u4e2a\u6587\u7ae0\u627e\u5230\u7684 workaround<br \/>\n<iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" title=\"Mac\u306bJava9\u3092\u5165\u308c\u3066jshell\u3092\u52d5\u304b\u3059\u307e\u3067\u306e\u30e1\u30e2 - SHIBUYA 3%\" src=\"https:\/\/hatenablog-parts.com\/embed?url=http%3A%2F%2Fshibuya-3percent.hatenablog.com%2Fentry%2F2016%2F02%2F05%2F012205#?secret=8p1m1bLm1q\" data-secret=\"8p1m1bLm1q\" scrolling=\"no\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exception in thread &quot;main&quot; java.lang.InternalError: Launching execution engine threw: Failed remote launch: com.sun.jdi.CommandLineLaunch (defaults: home=\/Library\/Java\/JavaVirtualMachines\/jdk-9.jdk\/Contents\/Home, options=, main=, suspend=true, quote=&quot;, vmexec=java) &#8212; {home=home=\/Library\/Java\/JavaVirtualMachines\/jdk-9.jdk\/Contents\/Home, options=options=, main=main=jdk.internal.jshell.remote.RemoteAgent 57696, suspend=suspend=true, quote=quote=&quot;, vmexec=vmexec=java} at jdk.jshell.JShell.executionControl(jdk.jshell@9-ea\/JShell.java:714) at jdk.jshell.Unit.classesToLoad(jdk.jshell@9-ea\/Unit.java:275) at jdk.jshell.Eval.lambda$compileAndLoad$15(jdk.jshell@9-ea\/Eval.java:580) at java.util.stream.ReferencePipeline$7$1.accept(java.base@9-ea\/ReferencePipeline.java:269) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(java.base@9-ea\/ArrayList.java:1477) at java.util.stream.AbstractPipeline.copyInto(java.base@9-ea\/AbstractPipeline.java:484) at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-ea\/AbstractPipeline.java:474) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(java.base@9-ea\/ReduceOps.java:913) at java.util.stream.AbstractPipeline.evaluate(java.base@9-ea\/AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(java.base@9-ea\/ReferencePipeline.java:511) at jdk.jshell.Eval.compileAndLoad(jdk.jshell@9-ea\/Eval.java:581) at jdk.jshell.Eval.declare(jdk.jshell@9-ea\/Eval.java:441) 1 127.0.0.1 Hais-MacBook-Pro &hellip; <a href=\"https:\/\/guoh.ai\/lifelog\/2016\/06\/jshell-launch-error-on-os-x-ei-capitan\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Jshell \u542f\u52a8\u9519\u8bef build 9-ea+121<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gfmr_meta_descriptions":[],"_gfmr_multilingual_taxonomy_terms":[],"footnotes":""},"categories":[4,1],"tags":[24],"class_list":["post-998","post","type-post","status-publish","format-standard","hentry","category-java","category-misc","tag-tool"],"_links":{"self":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/comments?post=998"}],"version-history":[{"count":9,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/998\/revisions"}],"predecessor-version":[{"id":1045,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/998\/revisions\/1045"}],"wp:attachment":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/media?parent=998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/categories?post=998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/tags?post=998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}