Server

The server-side of the JNLP specification describes the protocol involved in sending the requested material to the JNLP Client. The protocol is greatly simplified by relying completely on the HTTP protocol. Basically, the server reacts to GET requests from JNLP Clients.

General Response

Due to the different kinds of requests, the JNLP protocol encourages the use of error codes for the more common problems, as reported in the following table.

Error Code Error Description
10 Resource Not Found(HTTP error 404)
11 Could Not Locate Requested Version
99 Unknown Error

In case of an error, the response must be a string composed as follows:

String Response = errorCode + ' ' + errorDescription + "\n";

The returned MIME type is JNLP Error (“

Get Java™ Deployment with JNLP™ and Webstart™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.