Bộ sưu tập khung Java có một cấu trúc dữ liệu có nên làm việc cho hầu như bất cứ điều gì bạn sẽ cần phải làm. Muốn giữ một danh sách mà bạn có thể dễ dàng thêm vào? Bạn muốn tìm một cái gì đó bằng tên? Để tạo ra một danh sách tự động lấy ra tất cả các bản sao? Sắp xếp các đồng nghiệp của bạn bằng của số lần | Java Web start How Java Web start works The client clicks on a Web page link to your JWS application a .jnlp file . The Web page link a hraf Click a The Web server HTTP gets the request and sends back a .Jnlp file this Is NOT the JAR . The jnlp file is an XML document that states the name of the application s executable JAR file. Java Web start a small helper app on the client is started up by the browser. The JW5 helper app reads the .Jnlp file and asks the server for the file. 4 The Web server serves up the requested .jar file. Web start Java Web start gets the JAR and starts the application by calling the specified main method just like an executable JAR . Next time the user wants to run this app he can open the Java Web Start application and from there launch your app without even being online. HelloWebS aH i he app in ike J W 598 chapter17 package jars and deployment The Jnlp file To make a Java Web Start app you need to jnlp Java Network Launch Protocol file that describes your application. This is the file the JWS app reads and uses to find your JAR and launch the app by calling the JAR s HiainO method . A .jnlp file is a simple XML document that has several different things you can put in but as a minimum it should look like this xml version encodings utf-8 c Jhere 1 on our I . WOU jnlp spec j f codebase http kathy I Alli 11 nested n some other directory information title kathy App title vendor Wickedly Smart vendor homepage href description Head First Webstart demo description icon href offline-allowed _ TWs wea s J he user Mn run y information it wơrk wants to relaunch a vreviously-downioaaeo yr p-am without he user is offline resources j2se version This says that yorr ay needs version 13 of Java or greater. resources other JAjP f Z u r c e utal e JAR 17 . . application-desc main-class HelloWebStart jnlp This is like the main-fest Main-Class entry. it says