Hi!
Just made this tetris clone using lwjgl. I wonder if it works on your machines?
http://www.retris.1go.dk/
Søren Thorsen, Denmark
Hi!
Just made this tetris clone using lwjgl. I wonder if it works on your machines?
http://www.retris.1go.dk/
Søren Thorsen, Denmark
And I would be happy if you would tell me your OS/Browser/GraphicsHardware details wether or not it works 
works fine
nVidia 4200 Go, Windows XP, Firefox
wont even start. I see the webstart stuff with a “random industries” sign, and then nothign happens
gforce 3 ti200,windows XPpro , firefox
Middy>> Does it freeze at “Starting application” because I’ve seen that on a number of other machines which all had in common that no lwjgl had been executing on them before.
Any ideas what the problem can be?
Thanks to both of you for using some of your friday afternoon time on this!
Søren
yes it does, but I have run several LWjGl apps on it before using webstart, and nope I have no idea. I am using java 1.4.2_04 btw (not 1.5 as I stated)
Hmm ok. Can u see anything wrong in my php/jnlp file?
Tetris.php:
<?php header("Content-type: application/x-java-jnlp-file");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";?>
<jnlp
spec="1.0+"
codebase="http://www.retris.1go.dk/"
href="Tetris.php">
<information>
<title>Random</title>
<vendor>Random Industries</vendor>
<homepage href="http://www.random.com/"/>
<description>Random</description>
<description kind="short">
A little random toy
</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="Tetris.jar"/>
<jar href="lwjgl.jar"/>
</resources>
<resources os="Windows">
<nativelib href="lwjgl.win.jar" />
</resources>
<resources os="Linux">
<nativelib href="lwjgl.lin.jar" />
</resources>
<resources os="Mac">
<nativelib href="lwjgl.mac.jar" />
</resources>
<application-desc main-class="Tetris"/>
</jnlp>
Doesn’t work here. SuSE 9.1, Geforce FX 5650 Go, java 1.4.2. Exception from JWS log:
ava.lang.UnsupportedClassVersionError: Tetris (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at com.sun.jnlp.JNLPClassLoader.defineClass(JNLPClassLoader.java:307)
at com.sun.jnlp.JNLPClassLoader.access$100(JNLPClassLoader.java:51)
at com.sun.jnlp.JNLPClassLoader$1.run(JNLPClassLoader.java:254)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:247)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:614)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:390)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
at com.sun.javaws.Launcher.run(Launcher.java:167)
at java.lang.Thread.run(Thread.java:534)
I guess you’ve been compiling with a 1.5 SDK, right?
Fails to download correctly here 
Kev
yup! Compiled using 1.5 SDK! What’s the problem with that? Does it work if I change my code to compile with an older version?
I think you need to specify -target 1.4 to the 1.5 javac to make it generate 1.4 compatible class files.
Just compiled without option -source 1.5 and it works on all machines I’ve encountered. Does it work on yours now?
Thanks for your help everyone!
Søren
I’m sure you meant “-source 1.4”
Anyway, it works fine now.
No problems here, XP Pro, firefox, 6800 GT and 1.4.2_01.
I meant what I said which was compiling with “bla bla bla” instead of “-source 1.5 bla bla bla”. I think 1.4 is the default option so no need to specify it…
Anyway i’m glad it seems to work on most machines. Please let me know if I’m wrong!
works 
Nice! ;D
sthorsen, how did you compile your 1.5 code to 1.4 compatible. Cause I cant make it work
I changed the few lines with 1.5 specific code to 1.4 compatible code and the compiled it with:
javac -classpath “$[ClassPath]” -d “$[OutputPath]” $[JavaFiles]
The javac.exe is still the 1.5 compiler but it compiles to 1.4 by default.
damn… I dont want to change my code and I cannot compile it to 1.4 code…
Well shrew it you’ll get a webstart in a year or so (when 1.5 is out)