Deploying JOGL applications

Hi!

When people install my game, it is very slow. The download of my game itself is short but the download of the librairies for JOGL is very long. That’s why I tried to put the librairies of JOGL onto my FTP server. Nevertheless, it does not work. “tuer.jnlp” is the main config file :

<?xml version="1.0" encoding="utf-8"?> TUER Julien GOUESSE Small Quake-like written in Java + JOGL kill them all!!

jogl.jnlp is the second config file for JOGL :

<?xml version="1.0" encoding="utf-8"?> Java OpenGL Sun Microsystems, Inc. OpenGL bindings for Java JOGL

It does not work and I don’t find the solution. Could you give me some help? Sometimes, the game is not launched or crashes under Windows and recently, javaws put me a message telling me that something was missing, component-desc or application-desc whereas it is not the case.

Why don’t you point to the extension JNLP we host on download.java.net? We use Pack200 compression on our servers which should speed up the download of JOGL.

You mentioned that you put the resources on an FTP server; in this case you would need to use ftp:// for the protocol. I don’t know whether (or how well) Java Web Start supports this.

Ok. Currently I do what you suggest. Is there a way of accelerating the process? When people launch my game under Windows, it is so slow, windows often displays the message “téléchargement interrompu” which means “interrupted download” while downloading the JOGL files. Then, users believe that something is wrong and stop the process :frowning: . Thank you very much for your help.

Maybe it’s due to the cross-continent data transfers. Launches of JOGL content seem pretty fast where I am. I don’t have any other suggestions aside from making a local copy of the files onto a reliable HTTP server with Pack200 support.

i thought pack2000 was a zip-compression algorithm specifically for jars. but from this context it seems it has something to do with a HTTP server?
can someone enlighten me?

Right now you generally need server-side support to enable Pack200, since it’s generally implemented as a content-encoding scheme. The client requests foo.jar with the accept-encoding HTTP header containing pack200-gzip, and the server sends back the contents of foo.jar.pack.gz. This can be implemented using the JNLPDownloadServlet, .htaccess files, and other techniques. In a forthcoming release support will be added for doing this negotiation completely on the client side.

Two questions :

  • the taskbar under Linux (sometimes) goes on being drawn onto my frame even though I use setResizable at true, should I send a bug report?

  • how could I configure my jnlp file to force the JVM to give me more memory for the heap space?

Hi,

[quote]- the taskbar under Linux (sometimes) goes on being drawn onto my frame even though I use setResizable at true, should I send a bug report?
[/quote]
This is a bug in gnome, if I remember correctly, I filled a bug about this strange behavior (in fullscreen mode) which was investigated and forwarded to the gnome team. You may fall in the same problem.

Hope it helps.

No that happens under KDE too. I reproduced this bug under Mandriva Linux 2007 under KDE. On my own computer, I have this config, it works. On my neighbour’s computer, there is a problem, he uses Mandriva Linux 2007 under KDE too but he has a NVIDIA card whereas I have a ATI card.

The bug report that was closed is the following…
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6500686

Did you tried with setResizable( false ) and not resizing your frame in your code?

Yes. At first, I put it at false and after that, I put it at true. I will try again this evening. I don’t resize my window. Thanks

I checked it, it doesn’t work at all.