{"id":26899,"date":"2023-05-10T21:48:19","date_gmt":"2023-04-12T04:52:50","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/"},"modified":"2025-08-11T23:41:07","modified_gmt":"2025-08-11T15:41:07","slug":"ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/","title":{"rendered":"Ubuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u5b89\u88c5JDK\u7684\u5907\u5fd8\u5f55\u3002\u5047\u8bbe\u81ea\u5df1\u5168\u90e8\u6765\u7ba1\u7406\u3002<\/p>\n<p>http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html<br \/>\n\u3053\u3053\u304b\u3089\u9069\u5f53\u306b\uff08\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u74b0\u5883\u304c\u5408\u3063\u305f\u3001*.tar.gz \u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\uff09\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<br \/>\n*.tar.gz \u3092\u9069\u5f53\u306a\u5834\u6240\u306b\u5c55\u958b\u3059\u308b<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">tar <\/span>xvfz jdk-7u51-linux-x64.tar.gz\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u5c55\u958b\u3057\u3066\u4f5c\u6210\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u3001\/usr\/local\/lib \u306b\u3067\u3082\u79fb\u52d5\u3055\u305b\u308b\uff08\u3053\u306e\u8fba\u306f\u30dd\u30ea\u30b7\u30fc\u6b21\u7b2c\u3067\u3069\u3053\u306b\u3067\u3082\uff09<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">sudo mv <\/span>jdk1.7.0_51 \/usr\/local\/lib\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u308f\u304b\u308a\u3084\u3059\u3044\u540d\u524d\u3067\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8cbc\u3063\u3066\u304a\u304f\uff08\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306a\u3069\u3057\u305f\u6642\u306f\u30ea\u30f3\u30af\u3092\u8cbc\u308a\u76f4\u3059\uff09<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> \u521d\u56de\u306e\u307f\r\n<span class=\"gp\">$<\/span> <span class=\"nb\">sudo ln<\/span> <span class=\"nt\">-s<\/span> \/usr\/local\/lib\/jdk1.7.0_51 \/usr\/local\/lib\/jdk1.7\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> \u4e8c\u56de\u76ee\u4ee5\u964d\r\n<span class=\"gp\">$<\/span> <span class=\"nb\">sudo rm<\/span> <span class=\"nt\">-f<\/span> \/usr\/local\/lib\/jdk1.7\r\n<span class=\"gp\">$<\/span> <span class=\"nb\">sudo ln<\/span> <span class=\"nt\">-s<\/span> \/usr\/local\/lib\/jdk1.7.0_55 \/usr\/local\/lib\/jdk1.7\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u3068\u308a\u3042\u3048\u305a javac \u3068 java \u306f\u30d1\u30b9\u901a\u3063\u3066\u308b\u3068\u3053\u308d\u306b\u30ea\u30f3\u30af\u8cbc\u3063\u3066\u304a\u304f\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u5148\u306b\u3064\u3051\u305f\u30ea\u30f3\u30af\u5148\u3092\u53c2\u7167\u3057\u3066\u304a\u3051\u3070\u3001\u3053\u308c\u306f\u521d\u56de\u306e\u307f\u5b9f\u884c\u3059\u308c\u3070\u3088\u3044\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">sudo ln<\/span> <span class=\"nt\">-s<\/span> \/usr\/local\/lib\/jdk1.7\/bin\/javac \/usr\/local\/bin\/javac\r\n<span class=\"gp\">$<\/span> <span class=\"nb\">sudo ln<\/span> <span class=\"nt\">-s<\/span> \/usr\/local\/lib\/jdk1.7\/bin\/java \/usr\/local\/bin\/java\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5JDK\u7684\u5907\u5fd8\u5f55\u3002\u5047\u8bbe\u81ea\u5df1\u5168\u90e8\u6765\u7ba1\u7406\u3002 http:\/\/www.oracle.com\/technetwork\/ [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-26899","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8eUbuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7684\u6280\u672f\u6587\u7ae0\" \/>\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.silicloud.com\/zh\/blog\/ubuntu-\u306b-jdk-\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb-5\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8eUbuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-\u306b-jdk-\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb-5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-12T04:52:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T15:41:07+00:00\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/\",\"name\":\"Ubuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-12T04:52:50+00:00\",\"dateModified\":\"2025-08-11T15:41:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"description\":\"\u5173\u4e8eUbuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ubuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb - Blog - Silicon Cloud","description":"\u5173\u4e8eUbuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7684\u6280\u672f\u6587\u7ae0","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.silicloud.com\/zh\/blog\/ubuntu-\u306b-jdk-\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb-5\/","og_locale":"zh_CN","og_type":"article","og_title":"Ubuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","og_description":"\u5173\u4e8eUbuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-\u306b-jdk-\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb-5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-12T04:52:50+00:00","article_modified_time":"2025-08-11T15:41:07+00:00","author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/","name":"Ubuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-12T04:52:50+00:00","dateModified":"2025-08-11T15:41:07+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"description":"\u5173\u4e8eUbuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu \u306b JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/ubuntu-%e3%81%ab-jdk-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-5\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=26899"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26899\/revisions"}],"predecessor-version":[{"id":89422,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26899\/revisions\/89422"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=26899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=26899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=26899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}