Help! Why don't these work? (Mac and Linux users especially!)

The Titan Attacks “fat jar” version isn’t working on the Mac. Don’t know about Linux. Seems fine here on Vista64. Can anybody else with some more diverse hardware check it out and tell me if it doesn’t/does work? And if it doesn’t work, does the ordinary version work fine?

Cas :slight_smile:

fat jar version works fine here on linux64, ordinary version fails with a natives not found error on console

Java Web Start 1.6.0_13
Using JRE version 1.6.0_13 Java HotSpot(TM) 64-Bit Server VM
User home directory = /home/user
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
Fri May 15 22:47:33 BST 2009 Game: Titan Attacks 1.9
Serial 3722936268349440
Game is unregistered.
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
	at java.lang.Runtime.loadLibrary0(Runtime.java:823)
	at java.lang.System.loadLibrary(System.java:1030)
	at org.lwjgl.Sys$1.run(Sys.java:72)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
	at org.lwjgl.Sys.loadLibrary(Sys.java:81)
	at org.lwjgl.Sys.<clinit>(Sys.java:98)
	at org.lwjgl.opengl.Display.<clinit>(Display.java:129)
	at net.puppygames.applet.Game.init(Game.java:557)
	at net.puppygames.applet.Launcher.main(Launcher.java:64)
	at invaders.Invaders.main(Invaders.java:151)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javaws.Launcher.executeApplication(Launcher.java:1321)
	at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1267)
	at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1066)
	at com.sun.javaws.Launcher.run(Launcher.java:116)
	at java.lang.Thread.run(Thread.java:619)
java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.Sys
	at org.lwjgl.openal.AL.<clinit>(AL.java:59)
	at net.puppygames.applet.Game.exit(Game.java:969)
	at net.puppygames.applet.Launcher.main(Launcher.java:70)
	at invaders.Invaders.main(Invaders.java:151)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javaws.Launcher.executeApplication(Launcher.java:1321)
	at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1267)
	at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1066)
	at com.sun.javaws.Launcher.run(Launcher.java:116)
	at java.lang.Thread.run(Thread.java:619)
#### Java Web Start Error:
#### null

Hm, that’s the error occurring on Mac OS too - can’t load OpenAL for some reason.

Cas :slight_smile:

Both jars work fine here on linux - the latest kubuntu on an inspiron 9300.

Unrelated and entirely trivial, but I did notice some junk pixels in the upper right of the title screen, and the “demo” text is misaligned.

Hi!

The same security popup appears twice, it is a bit strange :o It works fine under Linux 32 bits.

I tried it on my Mac (10.5.6) and the fatjar failed with missing OpenAL but the ordinary jnlp worked fine.

i reckon the reason the ordinary version fails on linux64 is because of this line in the jnlp file

<resources os="Linux" arch="i386">

do you really need the arch=“i386” bit? :slight_smile:

again for the mac issue with the ordinary version maybe its a 64bit mac?

<resources os="Mac OS X" arch="i386">

I’ll try LWJGL 2.1.0 then… could you do me the favour of zapping the fat version of Titan from your caches and hitting this updated version and see if it works?

Also, the ordinary version still uses LWJGL 2.0.1 and doesn’t have 64 bit support in it yet – I’ll get around to updating that.

Cas :slight_smile:

Works fine here.

Windows XP SP3 32bit
Geforce 6200

Java 6

Works fine again here, plus version text is where it should be :slight_smile:

Your game is a lot of fun to play. And it works fine on Linux 64 and 32 bit JDK 1.5 using the ordinary version. The fat jar version throws an exception though:


java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javaws.Launcher.executeApplication(Launcher.java:1272)
	at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1218)
	at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1065)
	at com.sun.javaws.Launcher.run(Launcher.java:105)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.Sys
	at org.lwjgl.openal.AL.<clinit>(AL.java:59)
	at net.puppygames.applet.Game.exit(Game.java:925)
	at net.puppygames.applet.Launcher.main(Launcher.java:70)
	at invaders.Invaders.main(Invaders.java:151)
	... 9 more

Why do you want that fat jar version? It isn’t a good idea for JWS, is it?

Marvin

Err… secret reasons.

Cas :slight_smile:

Same deal for both JNLPs on Mac OS X 32-bit Java 5.


java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.sun.javaws.Launcher.executeApplication(Launcher.java:1332)
	at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1270)
	at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1117)
	at com.sun.javaws.Launcher.run(Launcher.java:105)
	at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NoClassDefFoundError
	at org.lwjgl.openal.AL.<clinit>(AL.java:59)
	at net.puppygames.applet.Game.exit(Game.java:925)
	at net.puppygames.applet.Launcher.main(Launcher.java:70)
	at invaders.Invaders.main(Invaders.java:151)
	... 9 more

What platform is that - Intel or PPC? (And OSX version?)

Cas :slight_smile:

Fatjar one failed on my Intel MacBook Pro running Windows XP (32 bit) with Java 6 - got the exact same InvocationTargetException Marvin Fröhlich did (notice that I’m NOT running OS X). Not sure what might be going on there…I’ll check OS X when I boot it next.

Normal one worked fine.

Intel, Mac OS X 10.MostRecent.

Which is… uh…

10.5.6