#概述java
##Java Web Start技術 Java Web Start幫助應用與Web瀏覽器進行整合。當用戶點擊具備特殊啓動文件的連接(JNLP文件),經過這個文件使瀏覽器啓動Java Web Start,對應用進行自動下載、緩存、提示用戶運行使用Java爲技術基礎的應用程序。用戶能夠對之後的提示進行關閉。git
從技術的立場,Java Web Start有若干個關鍵收益,是用來部署應用程序極具吸引力的平臺:web
Java Web Start只能經過Java(TM) Platform Standard Edition進行建立和啓動程序。所以,單獨的應用程序能夠經過Web服務部署到各類各樣的平臺上,包括Windows 98/NT/2000/ME/XP(譯者注:一樣適用於Window 7,10),Linux(譯者注:OpenJDK沒法正常運行,緣由未知),和Solaris的系統環境。(譯者注:Mac沒有進行嘗試)。java平臺已經被證實是一個很是強大的,生產力,和表現力的開發平臺,因爲最小化開發和測試成本致使顯著的成本節約。
Java Web Start支持多個版本的Java Platform Standard Edition。所以,應用能夠請求特定版本的Java開發平臺,例如Java SE 1.5.0。應用能夠同時運行在不一樣的平臺而不產生衝突,若是客戶端系統上並無安裝所需求的版本,Java Web Start能夠自動下載並安裝進行修正。
Java Web Start容許應用程序獨立於Web瀏覽器。當不便或者不能經過瀏覽器啓動時,應用能夠進行離線操做。應用能夠經過桌面快捷方式進行啓動,這種方式讓Web部署的應用程序和本地啓動的應用程序同樣。Java Web Start利用了Java所固有的安全性。在保護環境下,能夠限制沙盒中的應用訪問本地硬盤和網絡資源。用戶還必須在第一次啓動時點擊容許。
Java Web Start啓動的應用能夠在本地進行緩存。所以,已經下載的應用程序與傳統的安裝應用不分秋色。 技術標的java web start是java網絡啓動協議和API(JNLP)。該技術是經過java程序開發社區(JCP)。java web start是參考實現(RI)的JNLP規範。JNLP技術定義,在其餘事情上,一個標準的文件格式,描述瞭如何啓動一個應用程序調用一個JNLP文件。 Java Web Start基礎基礎是Java Network Launching Protocol和API(JNLP)。 該技術經過Java Community Process(JCP)進行開發。Java Web Start根據JNLP規範做爲參考進行實現(RI)。JNLP技術定義,在其餘事情上,一個標準的文件格式,描述瞭如何啓動一個應用程序調用一個JNLP文件。瀏覽器
###安全緩存
Java Web Start is built on top of the Java SE platform, which provides a comprehensive security architecture. Applications launched with Java Web Start, by default, run without permissions in a restricted environment ("sandbox") with limited access to files and network. Users are also shown a security warning and prompted for permission to run these applications. Thus, launching applications using Java Web Start maintains system security and integrity. An application can request unrestricted access to your system. Java Web Start will display a Security Warning dialog when the application is launched for the first time. The security warning shows information about the publisher of the application, the location from which the application is accessed, and the level of access requested. If you agree to the risk, then the application will be launched. The information about the origin of the application is based on digital code signing.安全
##在哪查找Java Web Start Java Web Start包含在Java運行環境,http://java.sun.com。JNLP規範在JSR 56:Java Network Launching Protocol and API.服務器
##使用Java Web Start軟件 Java Web Start容許直接在Web啓動以Java技術爲基礎的應用程序。應用程序能夠有三種方式進行啓動:網絡
###從Web瀏覽器啓動app
Point your web browser to a page with a link to a jnlp application, and click on that link.ide
A security dialog will pop up with information about the origin of the application based on who digitally signed the code, and the level of access requested. The application will run only if you decide to trust the vendor.
That is really all there is to using Java Web Start, but how does it work? The HTML links that launch the applications are, in fact, standard HTML links. However, instead of pointing to another Web page, they link to a special configuration file called a JNLP file. The Web browser examines the file extension and/or the MIME type of the file, and sees that it belongs to Java Web Start. It then launches Java Web Start with the downloaded JNLP file as an argument. Java Web Start proceeds with downloading, caching, and running the application as directed by the JNLP file.
Launching from desktop icons and the Start Menu (Microsoft Windows and Solaris, Linux, and Mac OS X running GNOME 2.0+)
Java Web Start technology can automatically create shortcuts for your application on the desktop and in the Start Menu for Web-deployed applications developed with Java technology. You can use the Java Control Panel to control the shortcut settings. Shortcuts can also be added by using the Java Web Start Cache Viewer, using the install shortcut menu item.
###在代理服務器/防火牆後使用Java Web Start
Java Web Start軟件在防火牆外啓動應用程序必須正確配置代理設置。Java Web Start軟件將會自動嘗試檢查系統瀏覽器的代理設置(在微軟視窗IE或者Netspace瀏覽器(譯者注:好久沒更新),Netspace瀏覽器能夠在Solaris操做環境和Linux系統)。Java Web Start技術支持大多數自動配置腳本。在大部分環境能夠正確代理設置。
可使用Java Web Start控制板設置代理配置。Java控制板更多詳情。
##需求 ###桌面/客戶端 需求:
客戶端計算設備須要支持Java運行環境(JRE), 版本 1.3 或者更高。Java Web Start能夠在Windows 98/NT/2000/ME/XP, Solari操做系統和Linux。
譯者注:怎麼可能還支持這麼舊的技術,多久沒有更新文檔了。
###服務器 需求:
應用程序能夠在任何標準的Web服務器進行部署。爲了使用Java Web Start,Web服務器經過配置必須支持新的MIME類型。見Web站點設置(譯者注:第二章)。