Superelvis

I can’t make superelvis run with webstart. I’ve been able to make other lwjgl run on my computer so I don’t know what the problem is. Here the error

General:

An error occurred while launching/running the application.

Title: SUPER ELVIS 0.94-200409172
Vendor: Puppy Games
Category: Unexpected Error

Unexpected exception: java.lang.reflect.InvocationTargetException

Launch File:

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

<!-- JNLP File for Hallucinogenesis --> 
<jnlp 
  spec="1.0+" 
  codebase="http://www.puppygames.net/downloads/hallucinogenesis" 
  href="hallucinogenesis.jnlp"> 
  <information> 
    <title>SUPER ELVIS 0.94-200409172</title> 
    <vendor>Puppy Games</vendor> 
    <homepage href="http://www.puppygames.net/"/> 
    <description>Shoot things! Collect things! Help Elvis escape a bad trip!</description> 
    <description kind="short">Shoot-em-up</description> 
    <offline-allowed/> 
  </information> 
  <security> 
      <all-permissions/> 
  </security>
  <resources> 
    <j2se version="1.4+"/> 
    <jar href="hallucinogenesis-code.jar"/>
    <jar href="hallucinogenesis-sprites.jar"/>
    <jar href="hallucinogenesis-sounds.jar"/>
    <jar href="hallucinogenesis-images.jar"/>
    <jar href="hallucinogenesis-fonts.jar"/>
    <jar href="hallucinogenesis-images.jar"/>
    <jar href="hallucinogenesis-game.jar"/>
    <jar href="alloy.jar"/>
    <jar href="lwjgl.jar"/>
    <jar href="gamecommerce.jar"/>
    <jar href="spgl.jar"/>
    <jar href="jogg-0.0.5.jar"/>
    <jar href="jorbis-0.0.12.jar"/>
    <extension href="bc.jnlp" />
  </resources> 
  <resources os="Windows">
    <j2se version="1.4+"/> 
    <nativelib href="lwjgl-windows.jar"/>
    <nativelib href="openal-windows.jar"/>
  </resources>
  <resources os="Linux" arch="i386">
    <j2se version="1.4+"/> 
    <nativelib href="lwjgl-linux.jar"/>
    <nativelib href="openal-linux.jar"/>
  </resources> 
  <resources os="MacOS">
    <j2se version="1.4+"/> 
    <nativelib href="lwjgl-osx.jar"/>
    <nativelib href="openal-osx.jar"/>
  </resources> 
  <j2se version="1.4+" initial-heap-size="40m" max-heap-size="40m" java-vm-args="-Xincgc"/> 
  <property key="java.library.path" value="." />
  <application-desc main-class="genesis.Game"/> 
</jnlp>

Exception:

java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.sun.javaws.Launcher.executeApplication(Unknown Source)
      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
      at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
      at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError
      at genesis.Game.cleanup(Game.java:529)
      at genesis.Game.exit(Game.java:766)
      at genesis.Game.main(Game.java:543)
      ... 11 more

I’m running WINXP on my laptop which has a mobility radeon 9000 graphics card. I’ve got the same problem on my stationary computer that runs WINXP and has a GeForce 3 Ti200 graphics card.

What could be wrong?

At the bottom of your stack trace you have the line

Caused by: java.lang.NoClassDefFoundError

Looks to me like you have a jar file missing, or a class within a jar is missing, or the code has a typo in it, and is looking for an incorrect class file in the reflection code.

Andy.

Okay. So what you’re saying is that it is probably not my fault. I’ll report it as a bug. Are you listening prince_c? (you made superelvis, right?)

I’m here! Haven’t figured out what your problem is though :confused: You haven’t gone and installed LWJGL binaries / jars in any funny locations have you?

Cas :slight_smile:

Actually I think I have. When I initially tried to get lwjgl up and running I added a lot of things to my class path and copied different jars and binaries to different locations on my hard drive. Could it possibly help do remove this garbage?

Hahaaa! Yes :slight_smile: Please remove ALL LWJGL BINARIES. They should never be installed anywhere other than your in your projects. To refer to the LWJGL binaries you should be using the -Djava.library.path= switch.

Cas :slight_smile:

And after removing the binaries the game works perfectly! Nice game by the way!

Thx 8) Will be released in time for Christmas.

Cas :slight_smile:

[quote]Hahaaa! Yes :slight_smile: Please remove ALL LWJGL BINARIES. They should never be installed anywhere other than your in your projects. To refer to the LWJGL binaries you should be using the -Djava.library.path= switch.

Cas :slight_smile:
[/quote]
So what you are saying here is if I am using JCreator and have the lwjgl binaries on my drive, referenceing thru jcreator. I create my jar, then sign all of them, and make my jnlp. I am getting the same error he was getting running my own app thru webstart. I have the binaries for lwjgl in an lwjgl folder on my dev machine. Should I not do that?

My app runs fine on numerous machines but when called thru webstart it flops.

Remembered the java.library.path=. property for Webstart?

Cas :slight_smile:

I’m sorry, what?

here is my temp jnlp


<?xml version="1.0" encoding="utf-8"?> 
<jnlp 
  spec="1.0+" 
  codebase="http://machine/CW" 
  href="CubeWars.jnlp"> 
  <information> 
    <title>CubeWars</title> 
    <vendor>MB</vendor> 
    <homepage href="docs/help.html"/> 
    <description>Cube Wars 0.0.1</description> 
    <description kind="short">Combat between cubes that represent Corporate Interests</description> 
    <icon href="images/swingset2.jpg"/> 
    <offline-allowed/> 
  </information> 
  <security> 
      <all-permissions/> 
  </security> 
   <resources>  
     <j2se version="1.5.0"/>   
     <jar href="CW.jar"/> 
     <jar href="lwjgl.jar"/>  
   </resources>  
  <application-desc main-class="org.mb.cubewars.CubeWars"/> 
</jnlp>

note: I have not included resources for non windows yet.

Well, here’s mine:


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

<!-- JNLP File for Hallucinogenesis --> 
<jnlp 
  spec="1.0+" 
  codebase="http://www.puppygames.net/downloads/hallucinogenesis" 
  href="hallucinogenesis.jnlp"> 
  <information> 
    <title>SUPER ELVIS 0.94-200409172</title> 
    <vendor>Puppy Games</vendor> 
    <homepage href="http://www.puppygames.net/"/> 
    <description>Shoot things! Collect things! Help Elvis escape a bad trip!</description> 
    <description kind="short">Shoot-em-up</description> 
    <offline-allowed/> 
  </information> 
  <security> 
      <all-permissions/> 
  </security>
  <resources> 
    <j2se version="1.4+"/> 
    <jar href="hallucinogenesis-code.jar"/>
    <jar href="hallucinogenesis-sprites.jar"/>
    <jar href="hallucinogenesis-sounds.jar"/>
    <jar href="hallucinogenesis-images.jar"/>
    <jar href="hallucinogenesis-fonts.jar"/>
    <jar href="hallucinogenesis-images.jar"/>
    <jar href="hallucinogenesis-game.jar"/>
    <jar href="alloy.jar"/>
    <jar href="lwjgl.jar"/>
    <jar href="gamecommerce.jar"/>
    <jar href="spgl.jar"/>
    <jar href="jogg-0.0.5.jar"/>
    <jar href="jorbis-0.0.12.jar"/>
    <extension href="bc.jnlp" />
  </resources> 
  <resources os="Windows">
    <j2se version="1.4+"/> 
    <nativelib href="lwjgl-windows.jar"/>
    <nativelib href="openal-windows.jar"/>
  </resources>
  <resources os="Linux" arch="i386">
    <j2se version="1.4+"/> 
    <nativelib href="lwjgl-linux.jar"/>
    <nativelib href="openal-linux.jar"/>
  </resources> 
  <resources os="MacOS">
    <j2se version="1.4+"/> 
    <nativelib href="lwjgl-osx.jar"/>
    <nativelib href="openal-osx.jar"/>
  </resources> 
  <j2se version="1.4+" initial-heap-size="40m" max-heap-size="40m" java-vm-args="-Xincgc"/> 
  <property key="java.library.path" value="." />
  <application-desc main-class="genesis.Game"/> 
</jnlp>

Cas :slight_smile:

I modified yours for my app and doh!, same error. I will tweek around a few more things and get this set up so other can try and access it.

Thanks,

M