{"id":442,"date":"2011-12-21T17:02:18","date_gmt":"2011-12-21T08:02:18","guid":{"rendered":"http:\/\/www.whoocus.com\/blog\/wordpress\/?p=442"},"modified":"2011-12-21T17:02:18","modified_gmt":"2011-12-21T08:02:18","slug":"jdk1-6%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a8alternatives","status":"publish","type":"post","link":"https:\/\/www.blowfish.co.jp\/?p=442","title":{"rendered":"JDK1.6\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068Alternatives"},"content":{"rendered":"<p>\u6bce\u56de\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u7c21\u5358\u306b\u306a\u308b\u3051\u3069\u3001\u53cd\u9762\u30d6\u30e9\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u5316\u3057\u3066\u7406\u89e3\u4e0d\u80fd\u306b\u306a\u308b\u306e\u3067\u899a\u3048\u66f8\u304d\u3002<\/p>\n<p><a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jdk-6u30-download-1377139.html\">\u3053\u3053<\/a>\u304b\u3089\u3001jdk-6u30-linux-x64.bin \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001jdk-6u30-linux-x64-rpm.bin \u306f\u52dd\u624b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u81ea\u5206\u7684\u306b\u306fNG\u3002<\/p>\n<p>\u4f59\u8ac7\u3060\u304c\u3001X86 \u3068 X64 \u306f\u300164bit\u7248\u304cX64\u3067\u300132bit\u7248\u304cX86\u3002<br \/>\n\u6570\u5024\u306e\u5927\u5c0f\u304c\u307e\u304e\u3089\u308f\u3057\u3044\u3002 Windows7 \u3068 Windows98 \u307f\u305f\u3044\u306a\u3082\u306e\u30fb\u30fb\u30fb\u3002<\/p>\n<p>[bash]<br \/>\n[user@server src]$ sudo .\/jdk-6u30-linux-x64.bin<br \/>\nUnpacking&#8230;<br \/>\nChecksumming&#8230;<br \/>\nExtracting&#8230;<br \/>\nUnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).<br \/>\n   creating: jdk1.6.0_30\/<br \/>\n   creating: jdk1.6.0_30\/db\/<br \/>\n   creating: jdk1.6.0_30\/db\/bin\/<br \/>\n  inflating: jdk1.6.0_30\/db\/bin\/ij<\/p>\n<p>\u2026\u7701\u7565<\/p>\n<p>Creating jdk1.6.0_30\/jre\/lib\/ext\/localedata.jar<br \/>\nCreating jdk1.6.0_30\/jre\/lib\/plugin.jar<br \/>\nCreating jdk1.6.0_30\/jre\/lib\/javaws.jar<br \/>\nCreating jdk1.6.0_30\/jre\/lib\/deploy.jar<\/p>\n<p>Java(TM) SE Development Kit 6 successfully installed.<\/p>\n<p>Product Registration is FREE and includes many benefits:<br \/>\n* Notification of new versions, patches, and updates<br \/>\n* Special offers on Oracle products, services and training<br \/>\n* Access to early releases and documentation<\/p>\n<p>Product and system data will be collected. If your configuration<br \/>\nsupports a browser, the JDK Product Registration form will<br \/>\nbe presented. If you do not register, none of this information<br \/>\nwill be saved. You may also register your JDK later by<br \/>\nopening the register.html file (located in the JDK installation<br \/>\ndirectory) in a browser.<\/p>\n<p>For more information on what data Registration collects and<br \/>\nhow it is managed and used, see:<br \/>\nhttp:\/\/java.sun.com\/javase\/registration\/JDKRegistrationPrivacy.html<\/p>\n<p>Press Enter to continue&#8230;..<\/p>\n<p>Done.<br \/>\n[\/bash]<\/p>\n<p>\u89e3\u51cd\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u3001\u304a\u597d\u307f\u306e\u5834\u6240\u3078\u79fb\u52d5\u3002<br \/>\n[bash]<br \/>\n[user@server src]$ sudo mv jdk1.6.0_30 \/usr\/local\/jdk1.6<br \/>\n[user@server src]$ ls \/usr\/local\/jdk1.6\/<br \/>\n[\/bash]<\/p>\n<p>java\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8abf\u3079\u308b\u3068\u53e4\u3044\u307e\u307e\u30fb\u30fb\u30fb\u3002<br \/>\n\u3069\u3046\u3084\u3089alternatives \u3068\u3044\u3046\u3082\u306e\u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3002<br \/>\nOS\u521d\u671f\u72b6\u614b\u3067\u306f\u3001\/usr\/lib\/jvm\/jre-1.4.2-gcj\/bin\/java\u3000\u304c\u5b9f\u614b\u3068\u3057\u3066\u30ea\u30f3\u30af\u3055\u308c\u3066\u3044\u308b\u6a21\u69d8\u3002<br \/>\n[bash]<br \/>\n[root@servere ~]# alternatives &#8211;config java<\/p>\n<p>1 \u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u308a &#8216;java&#8217; \u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p>  \u9078\u629e       \u30b3\u30de\u30f3\u30c9<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n*+ 1           \/usr\/lib\/jvm\/jre-1.4.2-gcj\/bin\/java<\/p>\n<p>Enter \u3092\u62bc\u3057\u3066\u73fe\u5728\u306e\u9078\u629e [+] \u3092\u4fdd\u6301\u3059\u308b\u304b\u3001\u9078\u629e\u756a\u53f7\u3092\u5165\u529b\u3057\u307e\u3059:<br \/>\n[\/bash]<\/p>\n<p>alternatives &#8211;install \u3067\u3001\u4eca\u56de\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3059\u308b\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001\u6700\u5f8c\u306e30\u306f\u512a\u5148\u9806\u4f4d\u3089\u3057\u3044\u304c\u3001\u3044\u304f\u3064\u3067\u3082\u3088\u3044\u3002\u6307\u5b9a\u3057\u306a\u3044\u3068\u6012\u3089\u308c\u308b\u3002<br \/>\n[bash]<br \/>\n[root@server ~]# alternatives &#8211;install \/usr\/bin\/java java \/usr\/local\/jdk1.6\/bin\/java 30<br \/>\n[root@server ~]# alternatives &#8211;config java<\/p>\n<p>2 \u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u308a &#8216;java&#8217; \u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p>  \u9078\u629e       \u30b3\u30de\u30f3\u30c9<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n*+ 1           \/usr\/lib\/jvm\/jre-1.4.2-gcj\/bin\/java<br \/>\n   2           \/usr\/local\/jdk1.6\/bin\/java<\/p>\n<p>Enter \u3092\u62bc\u3057\u3066\u73fe\u5728\u306e\u9078\u629e [+] \u3092\u4fdd\u6301\u3059\u308b\u304b\u3001\u9078\u629e\u756a\u53f7\u3092\u5165\u529b\u3057\u307e\u3059:2<br \/>\n[\/bash]<\/p>\n<p>\u3069\u3046\u3084\u3089\u4e0a\u624b\u304f\u3044\u3063\u305f\u3088\u3046\u3060\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30e6\u30fc\u30b6\u306f \/usr\/bin\/java \u3092\u74b0\u5883\u5909\u6570\u306e\u30d1\u30b9\u3067\u53c2\u7167\u3057\u306b\u884c\u3063\u3066\u3044\u308b\u3002<br \/>\n\/usr\/bin\/java \u2192 \/etc\/alternatives\/java \u2192 \/usr\/local\/jdk1.6\/bin\/java<\/p>\n<p>\u6163\u308c\u308c\u3070\u4fbf\u5229\u3060\u304c\u3001\u77e5\u3089\u306a\u3044\u3068\u624b\u52d5\u3067 ln -s \u3057\u3066\u3057\u307e\u3044\u305d\u3046\u3002<br \/>\n\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001alternatives\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u6c17\u3092\u4ed8\u3051\u3088\u3046\u3002<\/p>\n<p>[bash]<br \/>\nantlr              ksh             mta-newaliases     print-cancel     print-lpqman<br \/>\njava               ksh-man         mta-newaliasesman  print-cancelman  print-lprm<br \/>\njaxp_parser_impl   ksh-usrbin      mta-pam            print-lp         print-lprman<br \/>\njre_1.4.2          mta             mta-rmail          print-lpc        print-lprmman<br \/>\njre_1.4.2_exports  mta-aliasesman  mta-sendmail       print-lpcman     print-lpstat<br \/>\njre_gcj            mta-mailq       mta-sendmailman    print-lpman      print-lpstatman<br \/>\njre_gcj_exports    mta-mailqman    print              print-lpq        xinputrc<br \/>\n[\/bash] <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6bce\u56de\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u7c21\u5358\u306b\u306a\u308b\u3051\u3069\u3001\u53cd\u9762\u30d6\u30e9\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u5316\u3057\u3066\u7406\u89e3\u4e0d\u80fd\u306b\u306a\u308b\u306e\u3067\u899a\u3048\u66f8\u304d\u3002 \u3053\u3053\u304b\u3089\u3001jdk-6u30-linux-x64.bin \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u3002 \u3061\u306a\u307f\u306b\u3001jdk-6u30-linux-x6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[5,9,4],"tags":[],"class_list":["post-442","post","type-post","status-publish","format-standard","hentry","category-centos","category-java","category-tech"],"_links":{"self":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=442"}],"version-history":[{"count":0,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/442\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}