From: Jiba <a1...@So...> - 2001-04-20 14:40:51
|
Hi Sven, I've done a Java Web Start file for GL4Java ! (Java Web Start is a new way to lauch Java apps or applet from a browser - http://java.sun.com/products/javawebstart/ ) This will allow automatic installation of GL4Java for Java Web Start apps ! With Java Web Start, all the file (including classes, datas and native libs) must be placed into .jar files. I've worked with : gl4java.jar gl4java-glutfonts.jar libGL4Java-Linux.jar png.jar (The libGL4Java-Linux.jar file contains all the 3 native libs for Linux.) I've done 2 different extension, one for the PNG jar and one for GL4Java itself; to each extension corresponds a .jnlp file (those files have a XML syntax). The GL4Java extension is cut in two piece, called "GL4Java" and "GL4Java-GlutFonts", so if we doen't need the glut-fonts, they won't be downloaded. The GL4Java extension is run with all security permission (in order to access to native lib); but THIS REQUIRE TO SIGN sign ALL THE JAR. Java Web Start just require to add a mime type in the server for JNLP file, like (for Apache) : application/x-java-jnlp-file JNLP The jnlp files assume that all the file (the jar, gl4java.jnlp, png.jnlp) are in the same directory. This directory must be written in the file, in the "codebase" attrib of the <jnlp> element (replace my value, "http://localhost/~aonw/javaws", with your one). The index.html, test.jnlp and test.jar are just a very little demo, that lauch the GL4Java console (GLContext -info). Those 3 files sould be placed in the same directory than the other. To run the demo you also need to install Java Web Start client (cf URL before). The GL4Java extension can be declared in any .jnlp file, inside the <resources> element as following : <extension name = "GL4Java" href = "[GL4Java URL]/gl4java.jnlp"> <ext-download ext-part = "GL4Java"/> <ext-download ext-part = "GL4Java-GlutFonts"/> </extension> Feel free to modify information stuff or anything. Thanks for reading so far ! Jiba |