Skip to Main Content
Killer Game Programming in Java
book

Killer Game Programming in Java

by Andrew Davison
May 2005
Intermediate to advanced content levelIntermediate to advanced
998 pages
26h
English
O'Reilly Media, Inc.
Content preview from Killer Game Programming in Java

Appendix B. Installation Using Java Web Start

ava Web Start (JWS) is a web-enabled installer for Java applications (http://java.sun.com/products/javawebstart/). Typically, the user points a browser at a page containing a link to a deployment file; the retrieval of that file triggers the execution of JWS on the client, which takes over from the browser.

Tip

This assumes that JWS is present on the target machine.

JWS uses the information in the deployment file to download the various JAR files making up the application, together with installation icons, a splash screen, and other details. The application is stored in a local cache and executed inside a JVM sandbox. Subsequent executions of the application utilize the cached copy unless the original has been modified, in which case the changed JARs are downloaded again.

This appendix shows how the BugRunner and Checkers3D applications in Chapters 11 and 15 can be deployed with JWS. BugRunner is the beginnings of a 2D arcade-style game but uses the Java 3D timer. Checkers3D is a basic Java 3D application that displays a blue sphere floating above a checkerboard surface.

Both applications require native libraries, and I'll cover how JWS installers suitable for Windows can be created. However, JWS is a cross-platform tool, so I'll briefly examine the issues in making BugRunner and Checkers3D work on the Linux and Mac operating systems.

Deployment links are usually placed in a JWS portal page , a page using JavaScript and VBScript to detect ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Game Development with LibGDX: From Beginner to Professional

Java Game Development with LibGDX: From Beginner to Professional

Lee Stemkoski

Publisher Resources

ISBN: 0596007302Supplemental ContentErrata Page