{"id":88191,"date":"2026-07-31T16:48:42","date_gmt":"2026-07-31T08:48:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/88191.html"},"modified":"2026-07-31T16:48:42","modified_gmt":"2026-07-31T08:48:42","slug":"spring-boot-%e9%a1%b9%e7%9b%ae%e5%90%af%e5%8a%a8%e6%8a%a5%e9%94%99-cannot-determine-path-to-tools-jar-%e7%9a%84%e7%bb%88%e6%9e%81%e8%a7%a3%e5%86%b3%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/88191.html","title":{"rendered":"Spring Boot \u9879\u76ee\u542f\u52a8\u62a5\u9519 \u201cCannot determine path to \u2018tools.jar\u2018\u201c \u7684\u7ec8\u6781\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p>\ud83d\udca1 \u5982\u679c\u4f60\u5728\u7528 macOS + JDK 17 \u8fd0\u884c Spring Boot \u9879\u76ee\u65f6\u9047\u5230\u8fd9\u4e2a\u62a5\u9519\uff0c\u8fd9\u7bc7\u6587\u7ae0\u5c31\u662f\u4e3a\u4f60\u51c6\u5907\u7684\uff01<\/p>\n<h3>\ud83d\udccc \u62a5\u9519\u73b0\u8c61<\/h3>\n<p>\u5728 IntelliJ IDEA \u4e2d\u8fd0\u884c Spring Boot \u9879\u76ee\u65f6\uff0c\u63a7\u5236\u53f0\u8f93\u51fa\uff1a<\/p>\n<p>\u9519\u8bef: Cannot determine path to \\&#8217;tools.jar\\&#8217; library for 17 (\/opt\/homebrew\/Cellar\/openjdk@17\/17.0.20\/libexec\/openjdk.jdk\/Contents\/Home)<\/p>\n<p>\u9879\u76ee\u65e0\u6cd5\u542f\u52a8\uff0cIDEA \u7684\u7eff\u8272\u4e09\u89d2\u5f62\u6309\u94ae\u5931\u6548\u3002<\/p>\n<h3>\ud83d\udd0d \u95ee\u9898\u539f\u56e0<\/h3>\n<p>tools.jar \u662f Java 8 \u53ca\u4ee5\u4e0b\u7248\u672c\u624d\u5305\u542b\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u4ece Java 9 \u5f00\u59cb\uff0ctools.jar \u5df2\u7ecf\u88ab\u79fb\u9664\u4e86\u3002\u4f46 IDEA \u5728\u67d0\u4e9b\u7248\u672c\u4e2d\u4ecd\u7136\u4f1a\u53bb\u67e5\u627e\u8fd9\u4e2a\u6587\u4ef6\uff0c\u5bfc\u81f4\u62a5\u9519\u3002<\/p>\n<h3>\u2705 \u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>\u65b9\u6848\u4e00\uff1a\u76f4\u63a5\u7528 Maven \u547d\u4ee4\u542f\u52a8\uff08\u6700\u76f4\u63a5\uff0c100%\u6709\u6548\uff09<\/h4>\n<p>\u4e0d\u8981\u518d\u70b9\u51fb IDEA \u7684\u7eff\u8272\u4e09\u89d2\u5f62\u4e86\uff01<\/p>\n<p>\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\uff0c\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\uff0c\u6267\u884c\uff1a<\/p>\n<p>cd ~\/IdeaProjects\/\u4f60\u7684\u9879\u76ee\u540d .\/mvnw clean spring-boot:run<\/p>\n<p>\u770b\u5230 Started Application \u5c31\u8bf4\u660e\u542f\u52a8\u6210\u529f\u4e86\u3002<\/p>\n<h4>\u65b9\u6848\u4e8c\uff1a\u914d\u7f6e IDEA \u7684 Maven Runner<\/h4>\n<li>\n<p>\u5728 IDEA \u4e2d\u6309 Command + , \u6253\u5f00\u8bbe\u7f6e<\/p>\n<\/li>\n<li>\n<p>\u641c\u7d22 runner<\/p>\n<\/li>\n<li>\n<p>\u8fdb\u5165 Build, Execution, Deployment \u2192 Build Tools \u2192 Ma<\/p>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udca1 \u5982\u679c\u4f60\u5728\u7528 macOS + JDK 17 \u8fd0\u884c Spring Boot \u9879\u76ee\u65f6\u9047\u5230\u8fd9\u4e2a\u62a5\u9519\uff0c\u8fd9\u7bc7\u6587\u7ae0\u5c31\u662f\u4e3a\u4f60\u51c6\u5907\u7684\uff01<br \/>\n\ud83d\udccc \u62a5\u9519\u73b0\u8c61<br \/>\n\u5728 IntelliJ IDEA \u4e2d\u8fd0\u884c Spring Boot \u9879\u76ee\u65f6\uff0c\u63a7\u5236\u53f0\u8f93\u51fa\uff1a<br \/>\n\u9519\u8bef: Cannot determine path to \\&#8217;tools.jar\\&#8217; library for 17 (\/opt\/homebrew\/Cellar\/openjdk@17\/17.0.20\/libexec\/openjdk.jdk\/Content<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[166,98,292],"topic":[],"class_list":["post-88191","post","type-post","status-publish","format-standard","hentry","category-server","tag-jar","tag-spring-boot","tag-292"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spring Boot \u9879\u76ee\u542f\u52a8\u62a5\u9519 \u201cCannot determine path to \u2018tools.jar\u2018\u201c \u7684\u7ec8\u6781\u89e3\u51b3\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/88191.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Boot \u9879\u76ee\u542f\u52a8\u62a5\u9519 \u201cCannot determine path to \u2018tools.jar\u2018\u201c \u7684\u7ec8\u6781\u89e3\u51b3\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\ud83d\udca1 \u5982\u679c\u4f60\u5728\u7528 macOS + JDK 17 \u8fd0\u884c Spring Boot \u9879\u76ee\u65f6\u9047\u5230\u8fd9\u4e2a\u62a5\u9519\uff0c\u8fd9\u7bc7\u6587\u7ae0\u5c31\u662f\u4e3a\u4f60\u51c6\u5907\u7684\uff01 \ud83d\udccc \u62a5\u9519\u73b0\u8c61 \u5728 IntelliJ IDEA \u4e2d\u8fd0\u884c Spring Boot \u9879\u76ee\u65f6\uff0c\u63a7\u5236\u53f0\u8f93\u51fa\uff1a \u9519\u8bef: Cannot determine path to &#039;tools.jar&#039; library for 17 (\/opt\/homebrew\/Cellar\/openjdk@17\/17.0.20\/libexec\/openjdk.jdk\/Content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/88191.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-31T08:48:42+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/88191.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/88191.html\",\"name\":\"Spring Boot \u9879\u76ee\u542f\u52a8\u62a5\u9519 \u201cCannot determine path to \u2018tools.jar\u2018\u201c \u7684\u7ec8\u6781\u89e3\u51b3\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-31T08:48:42+00:00\",\"dateModified\":\"2026-07-31T08:48:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/88191.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/88191.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/88191.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring Boot \u9879\u76ee\u542f\u52a8\u62a5\u9519 \u201cCannot determine path to \u2018tools.jar\u2018\u201c \u7684\u7ec8\u6781\u89e3\u51b3\u65b9\u6848\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring Boot \u9879\u76ee\u542f\u52a8\u62a5\u9519 \u201cCannot determine path to \u2018tools.jar\u2018\u201c \u7684\u7ec8\u6781\u89e3\u51b3\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/88191.html","og_locale":"zh_CN","og_type":"article","og_title":"Spring Boot \u9879\u76ee\u542f\u52a8\u62a5\u9519 \u201cCannot determine path to \u2018tools.jar\u2018\u201c \u7684\u7ec8\u6781\u89e3\u51b3\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\ud83d\udca1 \u5982\u679c\u4f60\u5728\u7528 macOS + JDK 17 \u8fd0\u884c Spring Boot \u9879\u76ee\u65f6\u9047\u5230\u8fd9\u4e2a\u62a5\u9519\uff0c\u8fd9\u7bc7\u6587\u7ae0\u5c31\u662f\u4e3a\u4f60\u51c6\u5907\u7684\uff01 \ud83d\udccc \u62a5\u9519\u73b0\u8c61 \u5728 IntelliJ IDEA \u4e2d\u8fd0\u884c Spring Boot \u9879\u76ee\u65f6\uff0c\u63a7\u5236\u53f0\u8f93\u51fa\uff1a \u9519\u8bef: Cannot determine path to 'tools.jar' library for 17 (\/opt\/homebrew\/Cellar\/openjdk@17\/17.0.20\/libexec\/openjdk.jdk\/Content","og_url":"https:\/\/www.wsisp.com\/helps\/88191.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-31T08:48:42+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/88191.html","url":"https:\/\/www.wsisp.com\/helps\/88191.html","name":"Spring Boot \u9879\u76ee\u542f\u52a8\u62a5\u9519 \u201cCannot determine path to \u2018tools.jar\u2018\u201c \u7684\u7ec8\u6781\u89e3\u51b3\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-31T08:48:42+00:00","dateModified":"2026-07-31T08:48:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/88191.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/88191.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/88191.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Spring Boot \u9879\u76ee\u542f\u52a8\u62a5\u9519 \u201cCannot determine path to \u2018tools.jar\u2018\u201c \u7684\u7ec8\u6781\u89e3\u51b3\u65b9\u6848"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/88191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=88191"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/88191\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=88191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=88191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=88191"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=88191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}