{"id":209,"date":"2016-04-07T16:23:20","date_gmt":"2016-04-07T07:23:20","guid":{"rendered":"http:\/\/www.aes.jp\/?p=209"},"modified":"2016-05-30T00:23:01","modified_gmt":"2016-05-29T15:23:01","slug":"mac%e3%81%a7%e3%81%ae%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/www.aes.jp\/?p=209","title":{"rendered":"Mac\u3067\u306e\u74b0\u5883\u69cb\u7bc9\u30e1\u30e2"},"content":{"rendered":"<p>homebrew\u3092\u4f7f\u3063\u3066\u3001\u5404\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u305f\u65b9\u304c\u624b\u3063\u53d6\u308a\u65e9\u3044\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001\u81ea\u5206\u306e\u30de\u30b7\u30f3\u3067\u884c\u3063\u3066\u3044\u308b\u74b0\u5883\u69cb\u7bc9\u624b\u9806\u3092\u30e1\u30e2\u3063\u3066\u307f\u305f\u3002<\/p>\n<h1>Java\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<ol>\n<li>brew-cask\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ol>\n<p>[bash]<br \/>\nbrew install brew-cask<br \/>\nbrew tap caskroom\/versions<br \/>\n[\/bash]<\/p>\n<ol>\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306aJava\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d<\/li>\n<\/ol>\n<p>[bash]<br \/>\nbrew cask search java<br \/>\n==> Exact match<br \/>\njava<br \/>\n==> Partial matches<br \/>\ncharles-applejava        eclipse-java         java6                java9-beta<br \/>\ncharles-beta-applejava       java-beta            java7                yourkit-java-profiler<br \/>\n[\/bash]<\/p>\n<ol>\n<li>Java\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ol>\n<p>[bash]<br \/>\ncask install java<br \/>\n==> Caveats<br \/>\nThis Cask makes minor modifications to the JRE to prevent issues with<br \/>\npackaged applications, as discussed here:<\/p>\n<p>https:\/\/bugs.eclipse.org\/bugs\/show_bug.cgi?id=411361<\/p>\n<p>If your Java application still asks for JRE installation, you might need<br \/>\nto reboot or logout\/login.<\/p>\n<p>Installing this Cask means you have AGREED to the Oracle Binary Code<br \/>\nLicense Agreement for Java SE at<\/p>\n<p>http:\/\/www.oracle.com\/technetwork\/java\/javase\/terms\/license\/index.html<\/p>\n<p>==> Downloading http:\/\/download.oracle.com\/otn-pub\/java\/jdk\/8u77-b03\/jdk-8u77-macosx-x64.dmg<br \/>\n######################################################################## 100.0%<br \/>\n==> Verifying checksum for Cask java<br \/>\n==> Running installer for java; your password may be necessary.<br \/>\n==> Package installers may write to any location; options such as &#8211;appdir are ignored.<br \/>\nPassword:<br \/>\n==> installer: Package name is JDK 8 Update 77<br \/>\n==> installer: Upgrading at base path \/<br \/>\n==> installer: The upgrade was successful.<br \/>\n  java staged at &#8216;\/opt\/homebrew-cask\/Caskroom\/java\/1.8.0_77-b03&#8217; (2 files, 227M)<br \/>\n[\/bash]<\/p>\n<ol>\n<li>\u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a<\/li>\n<\/ol>\n<p>[bash]<br \/>\necho &#8220;export JAVA_HOME=$(\/usr\/libexec\/java_home)&#8221; >> ~\/bash_profile<br \/>\nsource ~\/bash_profile<br \/>\n[\/bash]<\/p>\n<ol>\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fJava\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d<\/li>\n<\/ol>\n<p>[bash]<br \/>\njava -version<br \/>\njava version &#8220;1.8.0_77&#8221;<br \/>\nJava(TM) SE Runtime Environment (build 1.8.0_77-b03)<br \/>\nJava HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)<br \/>\n[\/bash]<\/p>\n<ol>\n<li>brew cask\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30a2\u30d7\u30ea\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/li>\n<\/ol>\n<p>brew update\u3067\u306f\u66f4\u65b0\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u884c\u3046\u3002<\/p>\n<p>[bash]<br \/>\nfor c in <code>brew cask list<\/code>; do ! brew cask info $c | grep -qF &#8220;Not installed&#8221; || brew cask install $c; done<br \/>\n[\/bash]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>homebrew\u3092\u4f7f\u3063\u3066\u3001\u5404\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u305f\u65b9\u304c\u624b\u3063\u53d6\u308a\u65e9\u3044\u3002 \u3053\u3053\u3067\u306f\u3001\u81ea\u5206\u306e\u30de\u30b7\u30f3\u3067\u884c\u3063\u3066\u3044\u308b\u74b0\u5883\u69cb\u7bc9\u624b\u9806\u3092\u30e1\u30e2\u3063\u3066\u307f\u305f\u3002 Java\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb brew-cask\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb [bash] brew instal<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[17,18],"tags":[],"class_list":["post-209","post","type-post","status-publish","format-standard","hentry","category-mac","category-18"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.aes.jp\/index.php?rest_route=\/wp\/v2\/posts\/209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aes.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aes.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aes.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aes.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=209"}],"version-history":[{"count":7,"href":"https:\/\/www.aes.jp\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":213,"href":"https:\/\/www.aes.jp\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions\/213"}],"wp:attachment":[{"href":"https:\/\/www.aes.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aes.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aes.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}