class not found from jnlp application

Sorry to start a new topic for this, but i there was not another one to which it was completely matching.

I have my application well packaged and signed in a single jar file.

Here is the jnlp description i use for it.

<?xml version="1.0" encoding="utf-8" ?> 

<jnlp spec="1.0+" codebase="http://www.ccp4.ac.uk/fr45/jogl/" href="http://www.ccp4.ac.uk/fr45/jogl/Hege3D.jnlp">

  <information>

    <title>Hege3D</title>
    <vendor>Hegemonie</vendor>
    <homepage href="http://www.hegemonie.be/"/>
    <description>Moteur 3D</description>
    <description kind="short">
      Visualisation 3D d'un fief
    </description>

  </information>

  <security>
      <all-permissions/>
  </security>

  <resources>

    <j2se version="1.4"/>
    <jar href="Hege3D.jar" main="true"/>
    <extension name="jogl" href="https://jogl.dev.java.net/webstart/jogl.jnlp" />

  </resources>

  <application-desc main-class="Hegemonie3D"/>
</jnlp>

using the jogl.jnlp to import necessary library. But when running it i got the following error message:

java.lang.reflect.InvocationTargetException

      at etc ....

Caused by: java.lang.NoClassDefFoundError: net/java/games/jogl/GLEventListener

      at java.lang.ClassLoader.defineClass0(Native Method)

      at java.lang.ClassLoader.defineClass(Unknown Source)

      at java.security.SecureClassLoader.defineClass(Unknown Source)

      at java.net.URLClassLoader.defineClass(Unknown Source)

      at java.net.URLClassLoader.access$100(Unknown Source)

      at java.net.URLClassLoader$1.run(Unknown Source)

      at java.security.AccessController.doPrivileged(Native Method)

      at java.net.URLClassLoader.findClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClassInternal(Unknown Source)

      at Hegemonie3D.main(Hegemonie3D.java:15)

Which i think comes from this part of my code:

buff=ImageIO.read(new BufferedInputStream(this.getClass().getResourceAsStream(textfiles[i])));

But i can not understand what is the problem with it?

But i am not sure it comes from this… I have seen other people’s jnlp definition using the same jogl extension so i guess the problem does not comes from jnlp…

How to you make import of jogl in your classes usually?

i do:

import net.java.games.jogl.*;
import net.java.games.jogl.util.*;

Does it need to be included in another manner?