Java Web Start¸¦ »ç¿ëÇÏ¿© Eclipse ±â¹Ý ÀÀ¿ëÇÁ·Î±×·¥ ¹èÄ¡

Eclipse¿¡¼­ ºôµåµÈ ÀÀ¿ëÇÁ·Î±×·¥Àº Java Web Start¸¦ »ç¿ëÇÏ¿© ¹èÄ¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.

Java Web Start´Â "À¥ ºê¶ó¿ìÀú¿¡¼­ ÇÑ ¹ø Ŭ¸¯ÇÏ´Â °Í¸¸À¸·Î Àü±â´ÉÀÇ ÀÀ¿ëÇÁ·Î±×·¥À» ½ÇÇàÇÒ ¼ö ÀÖ´Â ´É·ÂÀ» Á¦°øÇÏ´Â ÀÀ¿ëÇÁ·Î±×·¥ ¹èÄ¡ ±â¼ú"ÀÔ´Ï´Ù.

Java Web Start¸¦ ÅëÇØ Eclipse¸¦ ½ÃÀÛÇϱâ À§ÇÑ ÀüÁ¦Á¶°ÇÀº ´ÙÀ½°ú °°½À´Ï´Ù.

´ÙÀ½ ´Ü°è´Â ±â´É ±â¹Ý RCP ÀÀ¿ëÇÁ·Î±×·¥¿¡ ¼­ºñ½º¸¦ Á¦°øÇÏ´Â Java Web Start »çÀÌÆ®ÀÇ ¼³Á¤ ¹æ¹ý¿¡ ´ëÇØ ¼³¸íÇÕ´Ï´Ù.

1´Ü°è: ·¦ÆÛ¸µ ±â´É ÀÛ¼º

2´Ü°è: ·¦ÆÛ ±â´É ¹× startup.jar ³»º¸³»±â

ÁÖÀÇÇϽʽÿÀ. ÀÌ ´Ü°è·Î ÁøÇàÇϱâ Àü¿¡ »ç¿ë °¡´ÉÇÑ Å° ½ºÅä¾î°¡ ÀÖ´ÂÁö È®ÀÎÇϽʽÿÀ. Eclipse´Â Ű ½ºÅä¾î¸¦ ÀÛ¼ºÇÒ ¼ö ÀÖ´Â ±â´ÉÀ» Á¦°øÇÏÁö ¾Ê½À´Ï´Ù. JDK¿Í ÇÔ²² Á¦°øµÇ´Â keytool ÀÀ¿ëÇÁ·Î±×·¥À» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ¶ÇÇÑ °³¹ß ÁßÀÎ Eclipse°¡ JRE ´ë½Å Java SDK¿¡¼­ ½ÇÇà ÁßÀÎÁö È®ÀÎÇϽʽÿÀ. ÀÌ Á¦ÇÑÁ¶°ÇÀ» ¸¸Á·½ÃŰÁö ¸øÇϸé jar ¼­¸í¿¡ ½ÇÆÐÇÕ´Ï´Ù.

3´Ü°è: ±âº» JNLP ÆÄÀÏ ÀÛ¼º

Java Web Start ÀÀ¿ëÇÁ·Î±×·¥Àº JNLP ÆÄÀÏ¿¡ ¼³¸íµË´Ï´Ù. ÀÌ ÆÄÀÏÀº ¾î´À Á¤µµ µ¿ÀÏÇÑ ¸ÞÄ¿´ÏÁòÀ¸·Î eclipse.exe ¹× config.ini ÆÄÀÏÀ» ´ë½ÅÇÕ´Ï´Ù. ¿¹¸¦ µé¾î, JNLP¿¡´Â ¸Å°³º¯¼ö¸¦ Àü´ÞÇϰí ÀÀ¿ëÇÁ·Î±×·¥ ±¸¼º ³»¿ëÀ» Á¤ÀÇÇϱâ À§ÇÑ ¹æ¹ýÀÎ ½ºÇ÷¡½Ã È­¸éÀ» Á¦¾îÇÏ´Â °íÀ¯ÇÑ ¸ÞÄ¿´ÏÁòÀÌ ÀÖ½À´Ï´Ù.

³»º¸³½ °æ¿ì, ¸ðµç ´Ü¼ø JNLP ÆÄÀÏÀÌ ÀÛ¼ºµÇ¾úÀ¸¹Ç·Î »ç¿ëÀÚ´Â ÀÀ¿ëÇÁ·Î±×·¥À» Á¦¾îÇÒ ±âº» ÆÄÀϸ¸ ÀÛ¼ºÇÏ¸é µË´Ï´Ù. ´ëºÎºÐÀÇ ±âº» ÆÄÀÏÀº ¸ðµç ÀÀ¿ëÇÁ·Î±×·¥¿¡ °øÅëµÇ¹Ç·Î ´ÙÀ½°ú °°Àº ÀÚü ¹®¼­È­ ÅÛÇø®Æ®¸¦ ÅëÇØ ½ÃÀÛÇϵµ·Ï ÇÕ´Ï´Ù.

ÀÀ¿ëÇÁ·Î±×·¥¿¡ ¼­ºñ½º¸¦ Á¦°øÇÏ´Â »çÀÌÆ®¿¡¼­, ÆÄÀÏÀº startup.jar°ú °°Àº Æú´õ¿¡ ÀÖ¾î¾ß ÇÕ´Ï´Ù. ÀÌ ÆÄÀÏÀ» ÆíÁýÇÏ°í ³ª¸é ÀÀ¿ëÇÁ·Î±×·¥À» »ç¿ëÇÒ Áغñ°¡ ¿Ï·áµË´Ï´Ù.

<?xml version="1.0" encoding="UTF-8"?>
<jnlp 
    spec="1.0+" 
    codebase="http://myCompany.org/jnlpServer" 
    href="mail.jnlp"> <!-- URL to the site containing the jnlp application. It should match the value used on  export. Href, the name of this file -->
  <information>
    <!-- user readable name of the application -->
    <title> Mail Application </title>  
    <!-- vendor name -->
    <vendor>My company</vendor>
    <!-- vendor homepage --> 
    <homepage href="My company website" /> 
    <!-- product description -->
    <description>This is a mail client</description> 
    <icon kind="splash" href="splash.gif"/>
  </information>
 
  <!--request all permissions from the application. This does not change-->
  <security>
    <all-permissions/>
  </security>
 
  <!-- The name of the main class to execute. This does not change-->
  <application-desc main-class="org.eclipse.core.launcher.WebStartMain">
    <argument>-nosplash</argument>
  </application-desc>
 
  <resources>
    <!-- Reference to the startup.jar. This does not change -->
    <jar href="startup.jar"/>
 
    <!-- Reference to all the plugins and features constituting the application -->
    <!-- Here we are referring to the wrapper feature since it transitively refers to all the other plug-ins  necessary -->
<extension
        name="Wrapper feature"
        href="features/Wrappering_1.0.0.jnlp"/>
 
    <!-- Information usually specified in the config.ini -->
	<property
        name="osgi.instance.area" 
        value="@user.home/Application Data/mail"/>
	<property
        name="osgi.configuration.area" 
        value="@user.home/Application Data/mail"/>
        
    <!-- The id of the product to run, like found in the overview page of the product editor -->
	<property
        name="eclipse.product" 
        value="mail.product"/>
  </resources>

  <!-- Indicate on a platform basis which JRE to use --> 
  <resources os="Mac">
    <j2se version="1.5+" java-vm-args="-XstartOnFirstThread"/>
  </resources>
  <resources os="Windows">
    <j2se version="1.4+"/>
  </resources>
  <resources os="Linux">
    <j2se version="1.4+"/>
  </resources>
</jnlp>

ÆÁ: ÀÌ ÆÄÀÏÀ» ÀÛ¼ºÇÏ°í ³ª¸é, ÀÌ ÆÄÀÏÀ» startup.jar°ú °°Àº Æú´õÀÇ ·¦ÆÛ ±â´É¿¡ ÀúÀåÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ·¸°Ô ÇÏ¸é ³»º¸³¾ ¶§¸¶´Ù Àüü ±¸Á¶¸¦ °¡Á®¿Ã ¼ö ÀÖ½À´Ï´Ù.

Ç÷¯±×ÀÎ ±â¹Ý ÀÀ¿ëÇÁ·Î±×·¥

RCP ÀÀ¿ëÇÁ·Î±×·¥ÀÌ ±â´ÉÀ» »ç¿ëÇÏÁö ¾Ê¾Æµµ Java Web Start·Î ¼öÇàÇÒ ¼ö ÀÖ½À´Ï´Ù.

ÀÌ·¸°Ô ÇÏ·Á¸é ·¦ÆÛ ±â´ÉÀ» ÀÛ¼ºÇÏ¿© ±âº» jnlp ÆÄÀÏÀ» ½±°Ô ÀÛ¼ºÇÏ°í ¹èÄ¡¸¦ ¿ëÀÌÇÏ°Ô Çϵµ·Ï ÇÒ °ÍÀ» ±ÇÀåÇÕ´Ï´Ù. ÀÌ ·¦ÆÛ ±â´ÉÀº »ç¿ëÀÚ ÀÀ¿ëÇÁ·Î±×·¥ÀÇ ¸ðµç Ç÷¯±×ÀÎÀ» ³ª¿­ÇÕ´Ï´Ù. ±â´ÉÀÌ °»½ÅµÇ¸é »ý¼ºµÈ JNLP ÆÄÀÏÀ» º¹»çÇÏ°í ±âº» JNLP ÆÄÀÏÀÌ µÇµµ·Ï ¼öÁ¤ÇϽʽÿÀ.

±âŸ

LinuxÀÇ Java Web Start

Eclipse ÀÀ¿ëÇÁ·Î±×·¥À» LinuxÀÇ Web Start·Î ½ÃÀÛÇÏ´Â °æ¿ì ±âº» À©µµÀ® ½Ã½ºÅÛÀº motifÀÔ´Ï´Ù. GTK¸¦ ½ÇÇàÇÏ·Á¸é ±âº» jnlp ÆÄÀÏ¿¡¼­ osgi.ws Ư¼ºÀ» "gtk"·Î ¼³Á¤ÇØ¾ß ÇÕ´Ï´Ù. ¿¹¸¦ µé¾î, ´ÙÀ½À» Ãß°¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.

  <resources os="Linux"/>
        <property name="osgi.ws" value="gtk"/>
  </resources>

¾Ë·ÁÁø Á¦ÇÑ»çÇ×