JNLP and 0.96

I have downloaded all 3 OS versions of lwjgl96 and noticed that each has:
lwjgl.jar
_devil.jar
_fmod.jar
_util.jar
_test.jar

When making my jnlp, do I need to reference all of these for each of the 3 OS version? Should I rename them with linux_ in front, etc…???

Or did I lose myself somewhere? :slight_smile:

i think the jar’s are the same on for all platforms so only one copy should work for every platforum, just the native code bit is different!

so I no longer need to do this in my jnlp?


   <resources os="Windows"> 
      <j2se version="1.5+"/>  
      <nativelib href="lwjgl_win.jar"/> 
      <nativelib href="lwjgl_al_win.jar"/> 
   </resources> 
   <resources os="Linux" arch="i386"> 
      <j2se version="1.5+"/>  
      <nativelib href="linux_lib.jar"/> 
      <nativelib href="linux_libal.jar"/> 
   </resources> 

just need the standard…


   <resources>  
     <j2se version="1.5+"/>   
     <jar href="GT7.jar"/> 
     <jar href="lwjgl.jar"/>
     <jar href="lwjgl_util.jar"/>
   </resources>

no no. lwjgl has jar files containing Java code and jar files containing native code (dlls etc)

The Java code jars are crosspatform. But the native ones you have to supply for each platform.

so I need to make my own jars of the other OS libs?

[quote]so I need to make my own jars of the other OS libs?
[/quote]
Yes. For each OS you make a signed jar containing the native files for that platform. The “native” jars will be referenced in the os specific resource tag in the jnlp:


<resources os="Windows">
<nativelib href="lwjgl-windows.jar"/>
</resources> 

Where lwjgl-windows.jar contains the dll files used.

Jars that don’t contain native files can be shared:


<resources> 
<j2se version="1.4+"/> 
<jar href="game.jar"/>
<jar href="lwjgl.jar"/>
</resources>