Java Web Start

In computing, Java Web Start (also known as JavaWS, javaws or JAWS) is a deprecated framework developed by Sun Microsystems (now Oracle) that allows users to start application software for the Java Platform directly from the Internet using a web browser. The technology enables seamless version updating for globally distributed applications and greater control of memory allocation to the Java virtual machine.

Java Web Start was distributed as part of the Java Platform until being removed in Java SE 11, following its deprecation in Java SE 9. The code for Java Web Start was not released by Oracle as part of OpenJDK, and thus OpenJDK originally did not support it. IcedTea-Web provides an independent open source implementation of Java Web Start that is currently developed by the AdoptOpenJDK community, RedHat and Karakun AG, and which is bundled in some OpenJDK installers.[1] Next to this OpenWebStart provides an open source based implementation that is based on IcedTea-Web but offers more features and commercial support options.

Functionality

Unlike Java applets, Web Start applications do not run inside the browser. By default they run in the same sandbox as applets, with several minor extensions like allowing to load and save the file that is explicitly selected by the user through the file selection dialog. Only signed applications can be configured to have additional permissions.

Web Start has an advantage over applets in that it overcomes many compatibility problems with browsers' Java plugins and different JVM versions. Web Start programs are no longer an integrated part of the web page, they are independent applications that run in a separate frame.

Web Start can also launch unmodified applets that are packaged inside .jar files, by writing the appropriate JNLP file. This file can also pass the applet parameters. Such applets also run in a separate frame. Applet launcher may not support some specific cases like loading class as resource.

Like applets, Java Web Start is cross-platform.

Deprecation

With JDK9, several deployment technologies including applets and Java Web Start were deprecated by Oracle.[2][3]

In March 2018, Oracle announced it will not include Java Web Start in Java SE 11 (18.9 LTS) and later. Developers will need to transition to other deployment technologies.[4] A few stand-alone alternatives have since arisen.

Implementation

Early versions of Java Web Start came with an application manager where, e.g., Sun's demo applications could be launched

The developer prepares a special XML file with JNLP extension. This file describes the application requirements, code location, parameters and additional permissions (if any). The browser downloads this file as any other and (following its MIME type, application/x-java-jnlp-file) opens it with Web Start tool. Web Start tool downloads all necessary resources and launches the application.

Java Web Start provides a series of classes in the javax.jnlp package which provide various services to the application. Sun designed most of these services with the aim of allowing carefully controlled access to resources (such as files and the system clipboard) while restricting the application to authorized operations.

Sun introduced version 1.0 of Web Start in March 2001,[5] while 64-bit Windows support was added only in Java 6[6] (later than 64-bit Java was first available). Since J2SE 1.4 Web Start comes as a default part of Java Runtime Environment (JRE) called javaws, computer administrators no longer have to install it separately.

Java Network Launching Protocol (JNLP)

Programmers often speak of the Java Network Launching Protocol (JNLP) interchangeably with the term "Web Start". The JNLP protocol, defined with an XML schema, specifies how to launch Java Web Start applications. JNLP consists of a set of rules defining how exactly to implement the launching mechanism. JNLP files include information such as the location of the jar package file and the name of the main class for the application, in addition to any other parameters for the program. A properly configured browser passes JNLP files to a Java Runtime Environment (JRE) which in turn downloads the application onto the user's machine and starts executing it. The development of JNLP took place under the Java Community Process as JSR 56. It includes the original 1.0 release, the subsequent 1.5 maintenance release, and as of 2006, the pending 6.0 maintenance release.[clarify]

Important Web Start features include the ability to automatically download and install a JRE in the case where the user does not have Java installed, and for programmers to specify which JRE version a given program needs in order to execute. The user does not have to remain connected to the Internet to execute the downloaded programs, because they execute from a locally maintained cache. Updates of the software download from the Web and become available when the user has a connection to the Internet, thus easing the burden of deployment.

Any computer user can use JNLP simply by installing a JNLP client (most commonly Java Web Start). The installation can occur automatically such that the end-user sees the client launcher downloading and installing the Java application when first executed.

JNLP works in a similar fashion to how HTTP/HTML works for the web. For rendering an HTML webpage, after the user clicks on a weblink, the browser submits a URL to a webserver, which replies with an HTML file. The browser then requests the resources referred to by this file (images, css), and finally renders the page once it has received enough information. Page rendering usually starts before all resources have downloaded; some resources not critical to the layout of the page (such as images) can follow on afterwards.

JNLP mirrors this process; in the same way that a Web browser renders a webpage, a JNLP client "renders" a Java app. After the user clicks on a weblink, the browser submits a URL to a webserver, which replies with a JNLP file (instead of a HTML file) for the application. The JNLP client parses this file, requests the resources specified (jar files), waits for the retrieval of all required resources, and then launches the application. The JNLP file can list resources as "lazy", which informs the JNLP client that the application does not need those resources to start, but can retrieve them later on when/if the application requests them.

Example

The example below gives a simple JNLP file to launch the applet, specifying code base, source, main class and window size. Such file contains all necessary references and is self-sufficient to launch the application. As no permissions are requested, the code will run in a sandbox. JNLP also states that this application can run offline (if already cached) and should be updated as a background process.

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://ultrastudio.org/upload" href="">
    <information>
        <title>Launch applet with Web Start</title>
        <vendor>Foo Bar Inc.</vendor>
        <offline-allowed/>
    </information>
    <resources>
        <j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>
        <jar href="Ray-2.3-4ca60e46-0956-3f22-983c-e3ed986dfd03.jar" main="true" />
    </resources>
    <applet-desc name="Ray diagram applet" main-class="raydiagramsapplet.Main" width="300" height="200">
    </applet-desc>
  <update check="background"/>
</jnlp>

Pack200 compression

To reduce the size of a Java Web Start application Sun Microsystems introduced a compression system called Pack200 in Java 1.5.0. It can compress a large jar file to one-ninth of its original size if it contains only Java classes.[7]

Java Web Start has supported Pack200 since it first appeared, but initially this feature required server-side cooperation and a certain amount of expertise to set up. When Sun introduced Java SE 6u10, Pack200 support became available without the need for special server support. Application designers can enable or disable this feature within JNLP files.

On slow connections Pack200 gives a performance boost in application startup time and download time.

Signed Web Start applications

By default, Java Web Start applications run "restricted", which means that they do not have access to some system resources such as local files. But publishers can remove these restrictions by signing their Web Start applications with the jarsigner tool that comes with the JDK.

Alternatives

The open-source IcedTea project provides an alternative JNLP implementation in IcedTea-Web. As of version 1.7.2, it also works on newer versions without official JWS support.[8]

To run Java Web Start-based application after the release of Java 11, the company Karakun AG has released the open source tool OpenWebStart, based on IcedTea-Web.[9] The tool includes all the functionality of IcedTea-Web and adds extended features, such as native installers for Mac OS, Windows, and Linux. IcedTea-Web was created with support from RedHat and AdoptOpenJDK.[10]

Notable applications

See also

References

  1. ^ ojdkbuild - WebStart, 2019-04-29, retrieved 2019-05-31
  2. ^ JDK9 Release Notes
  3. ^ Topić, Dalibor (January 27, 2016). "Moving to a Plugin-Free Web".
  4. ^ "Java Client Roadmap Update" (PDF). March 2018. Oracle will not include Java Web Start in Java SE 11 (18.9 LTS) and later. Oracle will begin encouraging application developers and users to transition away from Java Web Start and encourage non-commercial consumers to remove any unused or non-supported Oracle JRE installations from their desktops.
  5. ^ Java Web Start 1.0 press release
  6. ^ Bug ID 4802695, Support 64-bit Java Plug-in and Java webstart on Windows/Linux on AMD64
  7. ^ Pack200 and Compression for Network Deployment
  8. ^ icedtea-web. open sourc implementation of web start
  9. ^ "OpenWebStart". OpenWebStart. Retrieved 2020-07-20.
  10. ^ hendrik (2019-12-10). "How open source saved WebStart". GuiGarage. Retrieved 2020-07-20.

Read other articles:

Tujuh malaikat dengan tujuh sangkakala, dan seorang malaikat dengan sebuah pedupaan emas, dari Bamberg Apocalypse. Tujuh sangkakala (bahasa Inggris: Seven trumpets) adalah istilah bagi suatu peristiwa di mana dilakukan peniupan tujuh sangkakala oleh tujuh malaikat, satu per satu, untuk menandai rangkaian kejadian pada akhir zaman. Hal ini disaksikan dalam suatu penglihatan mengenai Wahyu Yesus Kristus[1] oleh Yohanes ketika berada di pulau Patmos dan dicatatnya dalam kitab Wahyu k...

 

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (سبتمبر 2022) إدواردو هنريكي معلومات شخصية الميلاد 17 مايو 1995 (العمر 28 سنة)ليميرا  الطول 1.84 م (6 قدم 1⁄2 بوصة) مركز اللعب وسط الجنسية البرازيل  معلومات النادي ا

 

Wappen derer von Wilmersdorff Wilmersdorff ist der Name eines brandenburgischen Uradelsgeschlechts mit Stammsitz im heutigen Berlin-Wilmersdorf. Als Ahnherr hat seit 1147 der Ritter und Oberst zu Ross Ludolph von Wilmersdorff zu gelten. Urkundlich belegt ist das Geschlecht erstmals im Jahre 1155 mit einem Burchardum de Willmarstorp, der in einer Urkunde des Markgrafen Albrecht von Brandenburg als Zeuge erwähnt wird. Das Geschlecht taucht danach erst wieder 1339 urkundlich auf (Riedel: Codex ...

Federação Gaúcha de FutebolFormation18 May 1918; 105 years ago (1918-05-18)[1]TypeList of international sport federationsHeadquartersPorto Alegre, Rio Grande do Sul, BrazilOfficial language PortuguesePresidentLuciano Dahmer HocsmanWebsitefgf.com.br The Football Association of Rio Grande do Sul (Portuguese: Federação Gaúcha de Futebol; FGF) was founded by Aurelio Py on May 18, 1918 and manages all the official football tournaments within the state of Rio Grande ...

 

American filmsby year 1890s 1890–1899 1900s 1900 1901 1902 1903 19041905 1906 1907 1908 1909 1910s 1910 1911 1912 1913 19141915 1916 1917 1918 1919 1920s 1920 1921 1922 1923 19241925 1926 1927 1928 1929 1930s 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940s 1940 1941 1942 1943 19441945 1946 1947 1948 1949 1950s 1950 1951 1952 1953 19541955 1956 1957 1958 1959 1960s 1960 1961 1962 1963 19641965 1966 1967 1968 1969 1970s 1970 1971 1972 1973 19741975 1976 1977 1978 1979 1980s 1980 1981 ...

 

WatusampuKelurahanNegara IndonesiaProvinsiSulawesi TengahKotaPaluKecamatanUlujadiKode Kemendagri72.71.05.1005 Kode BPS7271012006 Luas-Jumlah penduduk-Kepadatan- Untuk kegunaan lain, lihat Watu (disambiguasi). Rumah pengobatan penderita kusta di Watusampu pada tahun 1924 Watusampu adalah salah satu kelurahan di Kecamatan Ulujadi, Kota Palu, Sulawesi Tengah, Indonesia. Watusampu merupakan Kelurahan terakhir Kota Palu sebelum memasuki Wilayah Kabupaten Donggala. Batas Sebelah Utara-Desa Lol...

Sepultura discographySepultura performing at Metalmania in 2007Studio albums15Live albums3Compilation albums4Video albums6Music videos21EPs4Singles21 The following is the discography of Sepultura, a Brazilian heavy metal band. Sepultura was formed in Belo Horizonte, Minas Gerais, in 1984 by brothers Max and Igor Cavalera. After several lineup changes, Paulo Jr. and Jairo Guedz became permanent members for the band's first studio album Morbid Visions, released in 1986 through Cogumelo Records....

 

Japanese manga series Mobile Suit Gundam ThunderboltFirst tankōbon volume cover機動戦士ガンダム サンダーボルト(Kidō Senshi Gandamu Sandāboruto)GenreAdventure, science fiction[1] MangaWritten byYasuo OhtagakiPublished byShogakukanEnglish publisherNA: Viz MediaSG: Shogakukan AsiaMagazineBig Comic SuperiorDemographicSeinenOriginal run23 March 2012 – presentVolumes22 Original net animationDirected byKō MatsuoWritten byKō MatsuoMusic byNaruyos...

 

Political family of Nepal Thapa family redirects here. For other uses, see Thapa family (disambiguation). For surname, see Thapa. Thapa dynastyथापा वंश/थापा काजी खलकThapas of Borlang (Gorkha)Noble houseCountryKingdom of NepalGorkha KingdomFounded18th centuryFounderBirbhadra ThapaCurrent headcurrently as pretenderFinal rulerMathabarsingh ThapaTitles Hereditary Title of Kaji Mukhtiyar of Nepal Prime Minister of Nepal Pradhan Senapati of the Nepalese Army Comm...

This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help to improve this article by introducing more precise citations. (December 2019) (Learn how and when to remove this template message) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Orroral...

 

This article may rely excessively on sources too closely associated with the subject, potentially preventing the article from being verifiable and neutral. Please help improve it by replacing them with more appropriate citations to reliable, independent, third-party sources. (August 2018) (Learn how and when to remove this template message) This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living p...

 

International sporting eventWomen's kayak cross at the 2023 Pan American GamesVenueAconcagua RiverDatesOctober 27, October 29Competitors18 from 9 nationsMedalists Ana Sátila  Brazil Lois Betteridge  Canada Evy Leibfarth  United States«2019 Canoeing at the2023 Pan American GamesQualificationSlalomC-1menwomenK-1menwomenKayak crossmenwomenSprintC-1 200 mwomenC-2 500 mmenwomenC-1 1000 mmenK-1 500 mwomenK-1 1000 mmenK-2 500 mmenwomenK-4...

County in Kerman province, Iran Not to be confused with Kuhchenar County, Kuhdasht County, Kuhpayeh County, Kuhrang County, or Kuhsorkh County.For the city, see Kuhbanan. County in Kerman, IranKuhbanan County Persian: شهرستان کوهبنانCountyLocation of Kuhbanan County in Kerman provinceLocation of Kerman province in IranCoordinates: 31°17′N 56°12′E / 31.283°N 56.200°E / 31.283; 56.200[1]Country IranProvinceKermanCapitalKu...

 

1ª Divisão 2020-2021 Competizione 1ª Divisão Sport hockey su pista Edizione 81ª Organizzatore FPP Date dal 26 settembre 2020al 20 giugno 2021 Luogo  Portogallo Partecipanti 14 Formula Girone unico+Play-off Risultati Vincitore  Sporting CP(9º titolo) Retrocessioni  Famalicense Riba De Ave Cronologia della competizione 2019-2020 2021-2022 Manuale La 1ª Divisão 2020-2021 è stata l'81ª edizione del torneo di primo livello del campionato portoghese di hockey s...

 

Private college in Laguna, Philippines Laguna Northwestern College[1]Former namesLaguna Northwestern InstituteMottoAttainment of Quality in Life through Knowledge (Karunungan para sa Masaganang Buhay sa Kinabukasan); Investing New Knowledge for Filipino Youth.TypePrivate, non-sectarianEstablishedMay 28, 1978; 45 years ago (1978-05-28)PresidentDr. Rolando A. Entila, MD, MBA, MPALocation#56 A. Mabini St., San Antonio, San Pedro, Laguna, Philippines 4023 (Main Campus)14...

Indian politician Jitender Singh MalikMember of ParliamentIn office2009–2014Preceded byKishan Singh SangwanSucceeded byRamesh Chander KaushikConstituencySonepatMember of Legislative Assembly of HaryanaIn office2000–2005In office2005–2009 Personal detailsBorn (1970-02-12) 12 February 1970 (age 53)Political partyIndian National CongressParentRajinder Singh Malik (Former Minister of Health, Food Supplies and Civil Aviation Haryana) (father)Residence(s)Sonipat, Haryana, IndiaProfession...

 

Dayanidhi MaranDayanidhi MaranMenteri Komunikasi dan Teknologi InformasiMasa jabatan22 Mei 2004 – 16 Mei 2007Perdana MenteriManmohan SinghPendahuluArun ShouriePenggantiA. RajaAnggota Parlemen Indiadapil Chennai TengahPetahanaMulai menjabat 23 Mei 2019Masa jabatanJuni 2004 – Mei 2014PendahuluMurasoli MaranPenggantiS. R. Vijayakumar Informasi pribadiLahir5 Desember 1966 (umur 57)Kumbakonam, Distrik Thanjavur, Negara Bagian Madras (kini Tamil Nadu, India)Partai pol...

 

Hrabstwo UpshurUpshur County hrabstwo Państwo  Stany Zjednoczone Stan  Wirginia Zachodnia Siedziba Buckhannon Kod statystyczny FIPS 6-4: 54097 Powierzchnia 919,08 km²[1] Populacja (2010)• liczba ludności 24 254[2] Położenie na mapie Wirginia Zachodnia 38°54′00″N 80°13′48″W/38,900000 -80,230000 Multimedia w Wikimedia Commons Strona internetowa Hrabstwo Upshur (ang. Upshur County) – hrabstwo w stanie Wirginia Zachodnia w Stanach Zjednoc...

Voce principale: Ravenna Football Club 1913. Unione Sportiva Ravenna 1994-1995Stagione 1994-1995Sport calcio Squadra Ravenna Allenatore Alberto Cavasin poi Adriano Buffoni Presidente Daniele Corvetta Serie C14º nel girone A Coppa ItaliaPrimo turno Coppa Italia Serie CSedicesimi Maggiori presenzeCampionato: Doardo (33) Miglior marcatoreCampionato: Tacchi (7) StadioStadio Bruno Benelli 1993-1994 1995-1996 Si invita a seguire il modello di voce Questa pagina raccoglie le informazioni rigu...

 

ماريو فريك (بالألمانية: Mario Frick)‏  معلومات شخصية الميلاد 7 سبتمبر 1974 (العمر 49 سنة)خور الطول 1.82 م (5 قدم 11 1⁄2 بوصة) مركز اللعب مهاجم  الجنسية ليختنشتاين  أبناء نواه فريك  مسيرة الشباب سنوات فريق 1982–1990 FC Balzers [الإنجليزية]‏ المسيرة الاحترافية1 سنوات فر...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!