Eclipseã§iã¢ããªéçº (Starç·¨)
Starãããã¡ã¤ã«ã®éçºãã¼ã«ãå
¬éããã¦ããã®ã§æ©éå
¥ãã¦ã¿ã¾ããã
以ä¸Eclipseでiアプリ開発(DoJa編)ã®Starçã§ãã
Eclipseã使ã£ã¦Starãããã¡ã¤ã«ã®iã¢ããªãéçºã§ããç°å¢ãæ´ãã¾ãã
Java(1.4)ã¯ã¤ã³ã¹ãã¼ã«æ¸ã¿ã¨ããåæã§ãã
æºå
Eclipseã¨DoCoMoã®éçºãã¼ã«ããã¦ã³ãã¼ããã¦ãã¾ãã
1. DoCoMoã®éçºãã¼ã«ã«å«ã¾ããEclipseãã©ã°ã¤ã³ãEclipse3.0/3.1対å¿ãªã®ã§ãEclipseã®旧バージョンダウンロードページããEclipse3.1.1ã¨Language Packï¼3.1.1_Language_Packsï¼ããã¦ã³ãã¼ã
Staréçºãã¼ã«ãã¤ã³ã¹ãã¼ã«ããã¨ãDoJaçã®éçºãã¼ã«ãä¸æ¸ãããã¾ããDoJaãå¹³è¡ã§éçºããå ´åã¯ãDoJaã§å©ç¨ãã¦ããEclipseã¨ã¯å¥ã®Eclipseã«ã¤ã³ã¹ãã¼ã«ãã¾ããããä¸æ¸ããã¦ãã¾ãã¨ãä¸æ¦Starã¨DoJaã両æ¹åé¤ãã¦ããå ¥ããªãããªãã¨æ»ãã¾ããã
Eclipseã®è¤è£½æé
1. Eclipseãã©ã«ãã丸ãã¨ã³ãã¼
2. eclipse/configuration/.settingsãåé¤
3. Eclipseãèµ·åããå¥ã®workspaceãæå®
2. iアプリ技術情報ページãããææ°ãããã¡ã¤ã«ï¼ç¾å¨ã¯Star1.0ï¼ã®æè¡è³æã¨éçºãã¼ã«ããã¦ã³ãã¼ã
- iã¢ããªã³ã³ãã³ãéçºã¬ã¤ã for Star-ï¼.xã詳細編
- iã¢ããªã³ã³ãã³ãéçºã¬ã¤ã for Star-1.x iã¢ããªãªãã·ã§ã³ã»iã¢ããªæ¡å¼µç·¨
- iã¢ããªã³ã³ãã³ãéçºã¬ã¤ã for Star-1.0 APIãªãã¡ã¬ã³ã¹ç·¨
- iã¢ããªã³ã³ãã³ãéçºã¬ã¤ã for Star-1.0 ãªãã·ã§ã³ã»æ¡å¼µAPIãªãã¡ã¬ã³ã¹ç·¨
- Star-1.0ãããã¡ã¤ã«åãiã¢ããªéçºãã¼ã« (iαppli Development Kit for Star-1.0)
ã¤ã³ã¹ãã¼ã«
1. Eclipseæ¬ä½ã®ã¢ã¼ã«ã¤ããå±éããã®å¾Language_Packsãåããã©ã«ãã«å±éãã¦ãEclipseã®ãã¡ã¤ã«ãä¸æ¸ãããï¼ããã§Eclipseã®ã¤ã³ã¹ãã¼ã«ã¨æ¥æ¬èªåå®äºï¼
2. DoCoMoã®éçºãã¼ã«ãå±éãã¦emuforstar1_0_1_03/DISK1/setup.exeãå®è¡ãã¤ã³ã¹ãã¼ã«æ¹æ³ã§ã«ã¹ã¿ã ãé¸æããä¸è¨æ©è½ãã¤ã³ã¹ãã¼ã«
- ããã°ã©ã ãã¡ã¤ã«
- ãµã³ãã«ããã°ã©ã
- Eclipse3.0/3.1ãã©ã°ã¤ã³
3. ã¤ã³ã¹ãã¼ã«å¾ã«Microsoft Visual C++ 2005 SP1 åé
å¸å¯è½ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ãã¤ã¢ãã°ã表示ãããå ´åã¯ãã¯ããé¸æãã¦ãã¡ããã¤ã³ã¹ãã¼ã«
4. ã¢ããªã§çµµæåã表示ãããå ´åã¯ãä¸è¨ã®çµµæåå ¥åãã¼ã«ãã¤ãã§ã«ã¤ã³ã¹ãã¼ã«ãã¦ããã¨ä¾¿å©ã§ã
è¨å®
1. Eclipseãèµ·åããã¡ãã¥ã¼ãããã¦ã£ã³ã㦠> è¨å®ããé¸æãStar-1.0 Environmentã®è¨å®é ç®ã«ãããiappli DevelopmentKit for Star-1.0ã®ã¤ã³ã¹ãã¼ã«å ãã«éçºãã¼ã«ã®ã¤ã³ã¹ãã¼ã«å ãå ¥åï¼ããã©ã«ã㯠C:\iDKStar1.0ï¼
æä½éå¿
è¦ãªè¨å®ã¯ããã ãã§ãã
éçº
1. æ°è¦ããã¸ã§ã¯ãã§ãStar-1.0 ããã¸ã§ã¯ãããä½æ
2. ããã¸ã§ã¯ãä½æã¦ã£ã¶ã¼ãã§ãããã«ã¢ããªããããã¢ããªããããï¼ãã«ã¢ããªãã®ã¢ããªã±ã¼ã·ã§ã³ç¨®å¥ãé¸æã§ããããã«ãªã£ã¦ãã¾ãããããã§ã¯ã¨ãããããã«ã¢ããªãé¸æ
3. ç¶ãã¦ãã«ããã¹ã®è¨å®ãã¤ã¢ãã°ã表示ãããã®ã§ãé åºããã³ã¨ã¯ã¹ãã¼ãããSTAR_CLASS_ZIPã¨STAR_STARCLASS_ZIPã«ãã§ãã¯ãå ¥ãã¦çµäº
4. Helloã¯ã©ã¹ãä½æ
import com.docomostar.StarApplication; import com.docomostar.ui.Canvas; import com.docomostar.ui.Display; import com.docomostar.ui.Graphics; public class Hello extends StarApplication{ public void started(int launchType) { MyCanvas mp = new MyCanvas(); Display.setCurrent(mp); } } class MyCanvas extends Canvas{ public void paint(Graphics g){ g.drawString("Hello World!", 20, 20); } }
5. ã¡ãã¥ã¼ãããå®è¡ > æ§æããã³å®è¡ãç»é¢ãéããStar-1.0ã¢ããªã±ã¼ã·ã§ã³ãé¸æãã¦æ°è¦ãã¯ãªãã¯ãããã¸ã§ã¯ãæ¬ã«Helloã¨å
¥åãã¦å®è¡ãã¨ãã¥ã¬ã¼ã¿ãèµ·åããHello Worldï¼ã¨è¡¨ç¤ºãããã°OK
ï¼æ³¨ï¼ãã«ãã®éã«DoJaBuildExceptionãåºããã¨ãããã¾ãããJavaã®ãã¹ãéã£ã¦ããªãã®ãåå ã§ãã
6. å®æ©ã§ç¢ºèªãããå ´åã¯ãHello/bin/ã«ãããã¡ã¤ã«ï¼Download.html, Hello.jam, Hello.jarï¼ãã¢ãããã¼ãããDownload.htmlã«ã¢ã¯ã»ã¹ããã°ãã¦ã³ãã¼ãã§ãã¾ã