jnlp£¨JavaÍøÂç¼ÓÔØÐÒ飩ÔÀ´ºÜ¼òµ¥
Java Network Launching Protocol (JNLP£¬javaÍøÂç¼ÓÔØÐÒé)¡£
jnlpÊÇʲô£¿ÊÇjavaÌṩµÄÒ»ÖÖÈÃÄã¿ÉÒÔͨ¹ýä¯ÀÀÆ÷Ö±½ÓÖ´ÐÐjavaÓ¦ÓóÌÐòµÄ;¾¶£¬ËüʹÄã¿ÉÒÔÖ±½Óͨ¹ýÒ»¸öÍøÒ³ÉϵÄurlÁ¬½Ó´ò¿ªÒ»¸öjavaÓ¦ÓóÌÐò£®ºÃ´¦¾Í²»ÓÃ˵ÁË£¬Èç¹ûÄãµÄjavaÓ¦ÓóÌÐòÒÔjnlp µÄ·½Ê½·¢²¼£¬Èç¹û°æ±¾Éý¼¶ºó£¬²»ÐèÒªÔÙÏòËùÓÐÓû§·¢²¼°æ±¾£¬Ö»ÐèÒª¸üзþÎñÆ÷µÄ°æ±¾£¬Õâ¾ÍÏ൱ÓÚÈÃjavaÓ¦ÓóÌÐòÓÐÁËwebÓ¦ÓõÄÓŵãÁË£®
ÈçºÎʹÓÃjnlp:
1.°ÑÄãµÄÓ¦Óôò°ü³ÉÒ»¸ö¿ÉÖ´ÐеÄjarÎļþ£¬·ÅÔÚ¿ÉÒÔ·ÃÎʵÄwebĿ¼ÏÂ,ÈçappTest.jar£®
ÓÃant½Å±¾¿ÉÒÔÕâÑù,µ±È»Ò²¿ÉÒÔÊÖ¹¤ÓÃjar¹¤¾ß´ò°ü£®
<jar destfile="${desc.dir}/${youApp.jarName}" update="true" compress="true">
<manifest>
<attribute name="Main-Class" value=""com.youApp.MainClass"/>
</manifest>
<fileset dir="${class.dir}">
...
</fileset>
</jar>
2.±àдһ¸öxmlÎļþtest.jnlp ÄÚÈÝÈçÏÂ
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://localhost/yousite/" name="SeatingChartBuilder"
href="http://localhost/yousite/test.jnlp">
<information>
<title>Seating Chart Builder</title>
<vendor>Etix.com, Inc.</vendor>
<offline-allowed/>
<description>An Application To Seating Chart Builder!</description>
</information>
<application-desc main-class="com.youApp.MainClass"/><!--ÕâÀïÊÇÄãµÄÓ¦ÓõÄÈë¿Ú³ÌÐòÃû-->
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="appTes
Ïà¹ØÎĵµ£º
import java.io.*;
class abc
{
public static void main(String [] args)
{
int a=0;
int b=0;
int c=0;
&n ......
±äÁ¿ÊÇJava ³ÌÐòµÄÒ»¸ö»ù±¾´æ´¢µ¥Ôª¡£±äÁ¿ÓÉÒ»¸ö±êʶ·û£¬ÀàÐͼ°Ò»¸ö¿ÉÑ¡³õʼֵµÄ×éºÏ¶¨Òå¡£´ËÍ⣬ËùÓеıäÁ¿¶¼ÓÐÒ»¸ö×÷ÓÃÓò£¬¶¨Òå±äÁ¿µÄ¿É¼ûÐÔ£¬Éú´æÆÚ¡£
¡¡¡¡ÉùÃ÷Ò»¸ö±äÁ¿
Ò»¡¢ ¾²Ì¬³õʼ»¯
¡¡¡¡ÔÚJava ÖУ¬ËùÓеıäÁ¿±ØÐëÏÈÉùÃ÷ÔÙʹÓ᣻ù±¾µÄ±äÁ¿ÉùÃ÷·½ ......
ÔÚjava¿ª·¢µÄÔçÆÚ£¬Öص㱻·ÅÔÚÁË¿Í»§¶Ë¿ª·¢¡£ÓïÑÔÖжÔÓÚappletºÍ°²È«ÏÂÔصÄÖ§³Ö
¶ÔÓÚÍòάÍø£¨WWW£©µÄ·¢²¼¿´ÉÏÈ¥ÊǸö²»´íµÄÖ÷Òâ¡£µ«ÊÇÏÖʵÊÇjava×î´óµÄ³É¹¦ÔÚÓÚ·þÎñÆ÷¶Ë£¬javaµÄÇ¿´ó¹¦ÄܺÍÊÊÓ¦ÐÔÓ®µÃÁË·þÎñÆ÷¶Ë¿ª·¢ÕßµÄÐÄ¡£Í¬Ê±£¬¿Í»§¶ËµÄ¿ª·¢ÂäºóÁË¡£¼¬ÊֵĿª·¢ÎÊÌâÏÞÖÆÁËappletµÄЧÓ㬿ª·¢Õß±»ÆÈתÏò»ùÓÚä¯ÀÀÆ÷µÄÊÝ¿Í»§¶ ......