Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (526)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
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 888 times)
0 Members and 1 Guest are viewing this topic.
Offline MickeyB

Senior Devvie




my game will work, my game will work!


« Posted 2005-10-10 18: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 Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


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

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

Offline MickeyB

Senior Devvie




my game will work, my game will work!


« Reply #2 - Posted 2005-10-13 03: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 Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #3 - Posted 2005-10-13 10: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 Devvie




my game will work, my game will work!


« Reply #4 - Posted 2005-10-13 14: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.

 

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

The first screenshot will be displayed as a thumbnail.

toopeicgaming1999 (73 views)
2014-11-26 15:22:04

toopeicgaming1999 (62 views)
2014-11-26 15:20:36

toopeicgaming1999 (15 views)
2014-11-26 15:20:08

SHC (29 views)
2014-11-25 12:00:59

SHC (27 views)
2014-11-25 11:53:45

Norakomi (32 views)
2014-11-25 11:26:43

Gibbo3771 (27 views)
2014-11-24 19:59:16

trollwarrior1 (40 views)
2014-11-22 12:13:56

xFryIx (78 views)
2014-11-13 12:34:49

digdugdiggy (56 views)
2014-11-12 21:11:50
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!