Webstart Problems

EDIT: Fixed! Feel free to try the JNLP file

I was trying to find an answer to this but couldn’t :’(

My jogl app launches fine when run locally, but when I try to run it through webstart the Frame appears but nothing is drawn on the canvas

jnlp source:


<?xml version="1.0" encoding="utf-8"?>
<!-- Test for Checkers 3D -->
<jnlp
  spec="1.0+"
  codebase="http://www.jimrichards.com/e/checkers"
  href="Checkers3D.jnlp">
  <information>
    <title>Checkers 3D</title>
    <vendor>Eric Richards</vendor>
    <description>A simple 2-player 3D checkers game</description>
    <description kind="short">A simple 2-player 3D checkers game</description>
  </information>
  <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
    <jar href="Checkers3D.jar"/>
    <extension name="jogl" href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" />
  </resources>
  <application-desc main-class="CheckersMain"/>
</jnlp>

Link to the JNLP file

Don’t you have to get webstart to download the jogl-natives? That would explain why there’s a frame but no drawing.

Apparently there’s an example jnlp file in the JGears demo folder that comes with JOGL - check that out.

There wouldn’t even be a fram if I had no natives… There is no error message that appears

That gets the jogl natives

If you guys click the link is it blank?

you’re trying to read an image, maybe ur path to that image is incorrect. or how u packaged the image in jar this incorrect. maybe u have u images in the default package. i get access permission violation. hope that helps.

Ah, don’t know why I wasn’t getting a message…

Might be a problem with my textures, I’ll look into it tomorrow, thanks.

Yes its blank over here

I didn’t know about that extension stuff. What is imported from that jnlp? because in yours you have no security ‘all permissions’ option set, is that done in the default jnlp? Are your jars signed?

How does the app get resources? In webstart you have to get all resources like images, etc using this.getClass().getClassLoader().getResource(String).

Just copy someone else’s JOGL JNLP file and it should work. The only problem then is the signing of your jar files.

You don’t have to have all permissions or have it signed if you just use the extension, as that jnlp will download jogl. I know I used getResource for my .obj file, I must have forgotten it for my textures…

EDIT: I’m using getResourceAsStream for both my loaded textures and for my loaded object, hmmm

EDIT2: Tried signing the jar file and allowing full permissions… still blank

EDIT3: Removed the texutre loading code… It now works, at least I isolated something

EDIT4: Everything is working fine now… Took out the old texture loader and just made my own