圌ã¯åœŒã®å ±åã®ããã«ç§ã«åœ¹ç«ã¡ãŸãã ãã®æçš¿ã¯ãJavaãæããããšãèšç»ããŠããHabrã®èªè ã«åœ¹ç«ã€ã§ãããã
ã ããã 11æ8æ¥ãç§ã¯Javaã§ããã°ã©ãã³ã°ããæ¹æ³ãåŠã¶ããšã«ããŸããã
ãœãŒã¹ããŒã¿ïŒ
- ãã¬ã³ã ã®çµéšã
- PHPã§ã®ããã°ã©ãã³ã°ã®çµéšã¯ã»ãšãã©ãããŸããã
æåã®æ®µéã¯ç¥äººã§ãã
ãããã¯ã«é¢ããçãGoogleã®åŸãWikipediaã§èª¿æ»ãéå§ããããšã«ããŸããã
- en.wikipedia.org/wiki/Java
- en.wikipedia.org/wiki/Java_Platform,_Standard_Edition
- en.wikipedia.org/wiki/Java_Platform,_Enterprise_Edition
èšäºã¯ãæåã®è¿äŒŒãšããŠãèšèªãšãã©ãããã©ãŒã ã®ã¢ã€ãã¢ãäžããŠãããŸããã äžè¬çãªãã¬ãŒãºãé€ããŠãã»ãšãã©ãã¹ãŠãç§ã«ã¯æããã§ã¯ãããŸããã§ããã
2çªç®ã®ã¹ãããã¯ãJava SEãåŠç¿ããããã®æ¬ã®éžæã§ãã
ãã¥ãŒããªã¢ã«ãšããŠã ãã«ãŒã¹ã»ãšãã±ã«ã®Thinking in Java第4çãéžæããããšã«ããŸãã ã ç§ã¯æ¬ãââéžãã ããšãåŸæããŸããã§ããã ãã®æ¬ã¯éåžžã«èªã¿ããããäœåºŠãäœåºŠãæ¬æžã«æ»ãããšãã§ããŸãã ç§ã¯å€§ããªããŒãããã¯ãéå§ããèšèªã®åŠç¿äžã«ééããã³ãŒããå®çŸ©ããšã©ãŒã®äžéšãæžãå§ããŸããã
éçºç°å¢
-ããã«ã¡ã¯ã Javaã®åªããéçºç°å¢ãæããŠãã ããã
-æ¥é±ã®ç°å¢ã¯Javaéçºã«éåžžã«é©ããŠããŸãã
Bruce Eckelã®ã¢ããã€ã¹ã«åŸã£ãŠãæåã®æ°ãæã¯IDEã䜿çšããŸããã§ããã ãã§ã«æãæºãããåŸã public static void mainïŒString args []ïŒãå ¥åã㊠ã
Eclipseã眮ãããšã«ããŸããã äºçŽ°ãªããšã§ã¯ãããŸããã§ãã-ããã«EEã¢ã»ã³ããªïŒ Java EEéçºè åãEclipse IDEïŒãããŠã³ããŒãããŸããã
3çªç®ã®æ®µéã¯ããHello worldãããã°ã©ã ã§ãã
æšæºã©ã€ãã©ãªã®ç 究ã«è¿ã¥ããšãæç§æžã®äŸãã¿ã€ãããã®ã«ããããããŠããããšã«æ°ä»ããŸãããJavaSEã䜿çšããŠãã§ã«è§£æ±ºã§ããããã€ãã®ã¿ã¹ã¯ãã¹ã±ããããå¿ èŠããããŸãã ç§ã®å®äºããã¿ã¹ã¯ïŒ
0. 15ãæžã蟌ã¿ãŸãã ïŒãŠã§ããµã€ãwww.javenue.info/post/42ã«è§ŠçºãããïŒ
1. PingerãŠãŒãã£ãªãã£ãäœæããŸã-ãã¹ãã®å¯çšæ§ã¹ããŒã¿ã¹ãç£èŠããŸãã å¯çšæ§ããŒãã«ã衚瀺ããŸãã
2. Chromeããã¯ããŒã¯ãªãŒããŒãŠãŒãã£ãªãã£ãäœæããŸã-Chromeããå€éšxmlãã¡ã€ã«ã«ã¿ããç°¡åã«ã€ã³ããŒãããŸãã
ã¿ã¹ã¯ã®ãªãã·ã§ã³ïŒ
- ru.wikibooks.org/wiki/Java_in_examples ïŒã¡ã¢åž³ãé»åãããã²ãŒã ïŒã
- ã»ã¯ã·ã§ã³ã€ã³ãã¥ããŒã¿ãŒãã©ãŒã©ã javatalks.ru
ãã®æ®µéã§ãç 究ãç¶ããããã«ä»ã®ãªãœãŒã¹ãæ¢ãå§ããããšã¯æ³šç®ã«å€ããŸãã æ°é®®ãªç©ºæ°ãåžã£ãŠ ãã¢ã³ãã³ã»ãµãããã®ãµã€ã-java-course.ruãæã«å ¥ããŸãã ã 圌ã¯ãJava SEã«ã€ããŠæ¢ã«å ¥æå¯èœãªæ å ±ãäœç³»åããããšãèš±å¯ããŸããã
4çªç®ã®ã¹ãããã¯ãWebãç¥ãããšã§ãã
Java Webããã°ã©ãã³ã°ãæ¢çŽ¢ããããã®ãªãœãŒã¹ãšããŠãç§ã¯javapassion.comãéžæããããšã«ããŸãã ã ãããã®ãªã³ã©ã€ã³ã³ãŒã¹ã¯ãéåœã®åŸæ¥å¡ã§ããSun Sang Shinã«ãã£ãŠæããããŠããŸãã ãã®ãµã€ãã«ã¯ãã³ãŒã¹ã®ã¹ã±ãžã¥ãŒã«ãå 容ã宿é¡ããããŸãã ç¥èã«å ããŠããã®ã³ãŒã¹ãåè¬ãããã1ã€ã®åæ©ã¯ãã åæ¥èšŒææž ãã§ãããµã³ã·ã³ã¯åœŒã®Webãµã€ãã«æçš¿ããŠããŸãã
5çªç®ã®ã¹ããŒãžïŒçŸåšïŒã¯ãåã³Hello Worldããã°ã©ã ã§ãã
EEãã©ãããã©ãŒã ã®åºæ¬æè¡ã«ã€ããŠããŸãäœç³»çã§ã¯ãªãç¥èãå±±ç©ããŠãããããç§ã¯ããããåçåããŠå®è·µããããšã«ããŸããã Java EEãã©ãããã©ãŒã ã§ã®schaanCMSãšããã¿ã¹ã¯ãæãã€ããŸããã
ããŒã¹CMSïŒ
- èªå¯ã·ã¹ãã ã
- CMSãã¬ãŒã ã¯ãŒã¯ã
- ãªãã£ã¹ã¡ãã¥ãŒã
- ããŸããŸãªçšåºŠã®ãã¹ãã®ã»ã¯ã·ã§ã³
- èšäºãšãã£ã¿ãŒ
- ããnagiosã¢ãžã¥ãŒã«ïŒããã€ã¹ãšãµãŒãã¹ã®ç£èŠïŒ
- ãã±ããã¢ãžã¥ãŒã«ïŒé¡§å®¢ã®ãªã¯ãšã¹ãã®åŠçïŒ
- å€åäžã®ã¢ãžã¥ãŒã«å·ãæãïŒã·ã¹ãã 管çè ã®ã¹ã±ãžã¥ãŒã«ïŒ
- ãããCMS-ãã«ãã»ã¯ã·ã§ã³ïŒã·ã¹ãã 管çè åãïŒ
ç§ã¯æ¥åžžç掻ã§äœ¿çšããããã«è·å Žã§ã·ã¹ãã ãå°å ¥ããäºå®ã§ãã
ã¢ã¯ãã£ããªãããã¯ãŒã¯æ©åšãšãããã¯ãŒã¯ãµãŒãã¹ïŒããnagiosïŒãã«ã¹ã¿ããŒãµãŒãã¹éšéã®ã¢ããªã±ãŒã·ã§ã³ãåŠçããããã®ãã±ããã¢ãžã¥ãŒã«ãå€å管çè åãã®ãã«ãã»ã¯ã·ã§ã³ãç£èŠããããã®æ©èœãäœæããããšæããŸãã
第å 段éã¯ä»äºã§ãã
éçºãšãã¹ãã®æ®µéã§schaanCMSã·ã¹ãã ããã®å¿ èŠæ§ã蚌æããå Žåãç§ãã¡ã¯è·å Žã§ãããå®è£ ããŸãã
çµè«ïŒ
- ãã©ã€ããŒã éçºãéå§ããããã«ãJavaãã©ãããã©ãŒã ã®åºæ¬æè¡ãç¿åŸã§ããŸããã
- å šè¬ Googleã«ã¯ããŠã§ããã¯ãããžãŒãç¬åã§åŠã¶ã®ã«ååãªæ å ±ããããŸãã ïŒïŒ
ä»ã®ãšãããã¹ãŠã§ãã ç§ã¯ããªãã®åªåã®ãã¹ãŠã®æåãç¥ã£ãŠããŸãïŒ
ããã€ãã®ã¡ã¢ïŒ
- ãã¬ãŒãã³ã°ãéããŠã JDK SDKã®å ¬åŒããã¥ã¡ã³ããç©æ¥µçã«äœ¿çšããããšããããšã¯æ³šç®ã«å€ããŸã ã åé¡ãçºçããå Žåã¯ããŸãAPIã®ä»æ§ãèªãã§åé¡ã解決ããããšããããããåããŠGoogleã«ä¹ã蟌ã¿ãŸããã
- ãã¬ãŒãã³ã°ã®å§ãã«ãç§ã¯åºåã®ç ç²è ã«ãªãããæåãªããã°ã©ãã³ã°ã®é人ã®æ¬ãã ããŒããŒãã·ã«ã - å®å šãªJavaãªãã¡ã¬ã³ã¹ã第7çãè³Œå ¥ããŸããã ç§ã«é¢ããŠã¯ããã®æ¬ã®ç¿»èš³ã¯è²§åŒ±ã§ãé®®æãªäŸãååã§ã¯ãããŸããã åèãšããŠãå ¬åŒã®ããã¥ã¡ã³ãã䜿çšããããšããå§ãããŸãã ããã§ãã
- ééã£ããã¹ãéžæããJavaãéåžžã«è€éã§ããããã«æããç¬éããããŸããã ç§ã¯åã«åŠç¿ãžã®èå³ã倱ããŸããã ãã®åŸã ã¹ã¿ã³ãã©ãŒãå€§åŠ CS106Aã®çŽ æŽããããããªã³ãŒã¹ãç§ã®å©ãã«ãªããŸãã ïŒãããªã¯youtubeã«ãããŸãïŒã ãããã®ã³ãŒã¹ã¯ãããã°ã©ãã³ã°ã®é£ãããå¿ãããã»ã©ã°ã«ãŒãŽã£ãŒãªç·ã«ãã£ãŠæããããŠããŸãã ãã£ããã®ãã³ãïŒ SUN == Stanford University Networkã
- æ¥ãå匷ããããã«ãç§ã¯èªãããšã«ããŸãã-vaannila.com ã ã·ã³ãã«ã§æ確ã
- èšèªã®æçµçãªåæ¶äžèœãªäœç³»åã®ããã«ãç§ã¯æ°ãæåŸã«SCJPèªå®è©Šéšã«åæ Œããããšã«ããŸãã ã
ç®ç ïŒèšèªãå®å šã«ç¥ãããšã
å匷ããåæ© ïŒçŸãã蚌ææžã
質ã®é«ãç 究ã®åæ© ïŒ300ãã«ã®è²»çšããããè©Šéšã«å€±æããããªããããå€ãã®è³æãè©°ã蟌ãå¿ èŠããããŸãã
Habrauserã®ã¡ã¢ïŒ
- SCJPãæºåããSEã§ç¥èãæŽçããã«ã¯ãç¡æã§åæã«ExamLabã®é«å質ã·ãã¥ã¬ãŒã¿ã䜿çšã§ããŸãã
- NetBeansãšEclipseã®ç¡æã®éçºç°å¢ã«å ããŠã habrausersã¯åçšIntelliJ IDEAã詳ããèŠãããšãæšå¥šããŠããŸãã Java SEã§ã®éçºã¯ç¡æã§ãEEã§äœæ¥ãããå Žåã¯denyuzhkuã«æ¯æãå¿
èŠããããŸãïŒãã ãããã®å Žåã¯åŸ®åŠãªéãããããŸã ïŒã
ãIDEAã¯ãä»ãšã¯ç°ãªããããªã¿ã¯åãã®ããŒã«ããšããŠæ§ç¯ãããŠããŸãããããããã©ãã§çªããããèããããŸããããããæ¹åããæ¹æ³ãæããŠãããŸãã åå¿è ã¯ããã䜿ã£ãŠãæã«ã¯ãããéãåŠã¶ããšãã§ããŸããã ïŒ ïŒ ïŒ
ãEclipseã¯ç¡æãªã®ã§ãäžè¬çã«åå¿è ã«å§ããããŸãã ãã¯ãªãŒã³ãªãJavaã³ãŒããåŠçããããããããã°ããmainïŒïŒã䜿çšããŠåäžã®ãããžã§ã¯ããèµ·åãã以äžã®ããšãè¡ããªãéãããã®äžã®ãã¹ãŠãã¹ãŒããŒã§ãã ãã©ã°ã€ã³ã¯å¥œå¥å¿ã®åŒ·ãç¡æã®éçºè ã«ãã£ãŠæžãããŠããããçŸåšã®ã¢ã»ã³ããªãšã®äºææ§ãäœããããä»»æã®ã¢ããªã±ãŒã·ã§ã³ãµãŒããŒãèµ·åããããšããããXXXãã¬ãŒã ã¯ãŒã¯ã®ãŠã£ã¶ãŒãã䜿çšããŠïŒç¹ã«ãã®ãããªãã¬ãŒã ã¯ãŒã¯ã䜿çšããŠèšè¿°ãããã³ãŒãããªãã¡ã¯ã¿ãªã³ã°ããïŒäºãã«ååããªããªã©ã ç§ã®çµéšã§ã¯ãåŸã§ããã©ãŒãã³ã¹ã倱ãããããIDEAãããã«åãã¬ãŒãã³ã°ããæ¹ãè¯ããšèšãããŠããŸãã ãã®éçã«å°éããããšã¯éåžžã«é£ãããã°ãªãããçºçããå Žåãããã¯é倧ã§ã¯ãªããè¿ éã«ä¿®æ£ãããŸãã ïŒ ïŒ ïŒ - åå¿è ã®Javaéçºè åãã®éåžžã«åªãããããæžãããèšäºãskipy.ruã«ãããŸã
- CMSã®éçºã«é¢ããŠã ãããæžãäœæ¥ã®éã¯éåžžã«å€ããé©åãªã¢ãŒããã¯ãã£ãéžæããéã«ãã¹ãç¯ãã®ã¯éåžžã«ç°¡åã ãšããæèŠãè¡šæãããŸããïŒçµéšäžè¶³ã®ããïŒã ãããã£ãŠãCMSã®éçºã®åé¡ã¯æªè§£æ±ºã®ãŸãŸã§ãã å€åãç§ã¯å°ããªãŠã§ãæåãŠãŒãã£ãªãã£ãæžãããšã«èªåèªèº«ãå¶éããã§ãããããããŠãåã ã¯1ã€ãŸãã¯å¥ã®æè¡ã䜿ã£ãŠãç°¡åãªã¿ã¹ã¯ãå®è¡ããŸãã
- ãã¬ãŒã ã¯ãŒã¯ã®éçšãšç¥èã«ã€ããŠã ããçµéšè±å¯ãªä»²éã¯ãJavaã®Webãã¬ãŒã ã¯ãŒã¯ãæãäžããã¹ãã§ã¯ãªããšèšããŸãã JSFãStrutsãSpringãHibernateãäœã§ãããããããäœã®ããã«äœ¿çšãããŠããããäžè¬çãªçšèªã§ç¥ã䟡å€ããããŸãã æºåã«éç¹ã眮ãããšã¯ããµãŒãã¬ããã³ã³ããïŒ TomcatãJetty ïŒããã³WebãµãŒãã¹ã®è©³çŽ°ãªèª¿æ»ãè¡ãããšããå§ãã ãŸã ã
- æ¯æŽæè¡ãšæ¯æŽããŒã«ã®ç¥èã«ã€ããŠã
ãJavaã®ãããžã§ã¯ãã¯ãå€ãã®å Žåã1人ã§ã¯ãªãã1ã€ã®ããŒã ã§ãããããŸããã å±¥æŽæžã«ãã€ã³ãã©ã¹ãã©ã¯ãã£ãããŒã«ãèšèŒãããŠãããã©ãããç¹ã«MavenïŒãŸãã¯ãããã«æªãããšã«AntïŒãå人ããã¹ãã®æžãæ¹ãç¥ã£ãŠããããã¹ãã¬ã¹ãã¹ããå®è¡ããæ¹æ³ãç解ããŠããããããããæ£ããçµè«ãåŒãåºãæ¹æ³ãç§ãããç¥ã£ãŠãããã©ããã«åžžã«æ³šæãæããŸãJIRAãã°ãã©ãã«ãŒãªã©ã®ãããžã§ã¯ã管çããŒã«ã¯ãSVNïŒãŸãã人ã ãééããããšãç¥ããªãïŒãLinuxã䜿çšã§ãããã©ããïŒå°ãªããšãTomketãåèµ·åããŠããã£ã¹ã¯é åãäžè¶³ãããã©ããã確èªããŸãïŒã Javaã®ãªãã¬ã¯ã·ã§ã³ã®ç 究ã«å°ãæéãå²ãããšã¯éåžžã«è¯ãããšã§ãïŒjvmã®ä»çµã¿ãç解ããããã®éµã®1ã€ã§ããããïŒã ç§ã®æèŠã§ã¯ãæçµè£œåãã³ã³ãœãŒã«ããçµã¿ç«ãŠãããšãã§ããªãå ŽåããŸãã¯å®è¡ããç°å¢ãæäŸã§ããªãå Žåãèšèªèœåã®åŸ®åŠãã¯ãŸã£ããéèŠã§ã¯ãããŸããã é©åãªããŒã«ã䜿çšããããšã¯æåã®ååã§ãããæ®ãã®ååã¯çµéšã§ãã ããã°ã©ãã³ã°ã«é¢ãããã¥ã¢ã³ã¹ïŒããçŸããæžãæ¹æ³ãªã©ãããã©ãŒãã³ã¹ã«ãšã£ãŠéèŠã§ã¯ãªãïŒã¯ãŸã£ããéèŠã§ã¯ãããŸãã ã ïŒ ïŒ ïŒ
èšäºã®è°è«ã«åå ããŠããããã¹ãŠã®äººã«æè¬ããŸãã ããªãã®ã³ã¡ã³ãã¯ãç§ãšç§ã®ãããªä»ã®æ°äººã«ãšã£ãŠéåžžã«è²Žéã§ãã