Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Webstart error  (Read 628 times)
0 Members and 1 Guest are viewing this topic.
Offline MickeyB

Senior Member




my game will work, my game will work!


« Posted 2005-10-10 20:46:03 »

being a clubie today...and for a number of days, or weeks or months now..anyway:

I am truly over seeing this error when I try to launch my app by webstart:

1  
2  
3  
4  
java.lang.reflect.InvocationTargetException

Caused by: java.lang.NoClassDefFoundError
   at org.lwjgl.openal.AL.<clinit>(AL.java:86)


Found a number of different "solutions" to this that all seem to be trial and error and for me all error.  Anyone know why this happens?

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Offline erikd

JGO Knight


Medals: 3
Projects: 3


Maximumisness


« Reply #1 - Posted 2005-10-12 09:46:22 »

Did you included all needed jars in the jnlp?
Could you post your jnlp file?

Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #2 - Posted 2005-10-13 05:07:51 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
<?xml version="1.0" encoding="utf-8"?> 
<jnlp
  spec="1.0+"
  codebase="http://127.0.0.1/GT7"
  href="GT7.jnlp">
  <information>
    <title>Galaxy Traders 0.0.1</title>
    <vendor>MB</vendor>
    <homepage href="docs/help.html"/>
    <description>Startship trading, combat and exploration.</description>
    <description kind="short">Space Sim</description>
    <icon href="images/swingset2.jpg"/>
    <offline-allowed/>
  </information>
  <security>
      <all-permissions/>
  </security>
   <resources>  
     <j2se version="1.5+"/>  
     <jar href="GT7.jar"/>
     <jar href="lwjgl.jar"/>
     <jar href="lwjgl_util.jar"/>
     <jar href="jenn.jar"/>
   </resources>
   <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>
  <property key="java.library.path" value="." />
  <application-desc main-class="GT7.client.ClientGUI"/>
</jnlp>


and all jars are signed

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline erikd

JGO Knight


Medals: 3
Projects: 3


Maximumisness


« Reply #3 - Posted 2005-10-13 12:35:43 »

At first sight I don't see any problem in your jnlp.
However, if I compare it with alienflux.jnlp, I do notice that the  <property key="java.library.path" value="." /> tag is in the main <resources> element, and that the dlls are packed into one jar. I don't know if this will make a difference as the error msg doesn't say that it can't load the dll, but I do remember that the library path needed to be set to get OpenAL to work through jnlp.

Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #4 - Posted 2005-10-13 16:47:58 »

Thanks.  Tried it and webstart fails syaing there is no properties tag.  I will try to put all dlls into single jar.

Found the AF jnlp file and mine is nearly idnetical, barring file names. 

Uncle!  Huh

BOOYAH!  FOund it.  Downloaded 0.96 again (yes still on that release) and took the native folder, made one jar out of all of it and replaced the windows os native ref with a ref to the new jar.  remove the property key ref altogether and voila!!   
Thanks!!!

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (88 views)
2013-05-17 21:29:12

alaslipknot (96 views)
2013-05-16 21:24:48

gouessej (128 views)
2013-05-16 00:53:38

gouessej (123 views)
2013-05-16 00:17:58

theagentd (131 views)
2013-05-15 15:01:13

theagentd (119 views)
2013-05-15 15:00:54

StreetDoggy (161 views)
2013-05-14 15:56:26

kutucuk (184 views)
2013-05-12 17:10:36

kutucuk (185 views)
2013-05-12 15:36:09

UnluckyDevil (191 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.155 seconds with 20 queries.