Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
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  
  Very basic test (LWJGL+webstart)  (Read 2976 times)
0 Members and 1 Guest are viewing this topic.
Offline ribot

Junior Member




Ribot - mobile UI specialist


« Posted 2004-05-24 12:45:00 »

Hi all,

http://www.ribot.co.uk/webstart/

I'm having a few problems getting a basic webstart app to work with LWJGL code (consisting of a single Game class which is in fact an identical copy to that in the test package but with some colour added to the vertices of the spinning rectangle).

I have tested under OS X and everything runs without fault, but on my XP system, the application doesnt even seem to start (the furthest it goes is the completion of downloading the libraries).

Any ideas? Is there a list of dos and don'ts with regard to LWJGL+Webstart development?

[edit: updated link]

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2004-05-24 13:02:51 »

On WinXP: no class def found error, org.lwjgl.Display... you've got your jnlp all screwed up. Cut 'n' paste from the Alien Flux JNLP file to get it right.

It shouldn't work properly on Webstart btw... LWJGL is b0rked on MacOS at the moment.

Cas Smiley

Offline ribot

Junior Member




Ribot - mobile UI specialist


« Reply #2 - Posted 2004-05-24 13:36:29 »

Quote
On WinXP: no class def found error, org.lwjgl.Display... you've got your jnlp all screwed up. Cut 'n' paste from the Alien Flux JNLP file to get it right.

It shouldn't work properly on Webstart btw... LWJGL is b0rked on MacOS at the moment.

Cas Smiley


Righty, I looks as though my jnlp files have incorrect formatting in them (i.e. the unix blocks instead of return lines) - Is this what you mean by screwy?  The original JNLP file was created in BBEdit on the Apple, I have now tried creating in different programs on PC, but nothing seems to change with regard to the application starting under XP.  In my version of IE, it just displays the file as xml in the browser.  Sad

The JNLP file that I created was a type of hybrid of Kevin's and yours.

What eaxctly shouldn't work under OS X? Input, rendering , audio or everything?

Cheers,

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ribot

Junior Member




Ribot - mobile UI specialist


« Reply #3 - Posted 2004-05-24 14:03:19 »

I have created a new JNLP file (with Notepad on the PC), using your Alien-Flux file as a template.... But seem to be having the same troubles.  Sad

http://www.ribot.co.uk/webstart/

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 File for LWJGL-based Webstart Deployment Test -->
<jnlp
  spec="1.0+"
  codebase="http://www.ribot.co.uk/webstart/"
  href="LWJGL_test5.jnlp">
  <information>
    <title>LWJGL test</title>
    <vendor>Ribot</vendor>
    <homepage href="http://www.ribot.co.uk/"/>
    <description>Simple LWJGL Dev Test</description>
    <description kind="short">Dev test</description>
    <offline-allowed/>
  </information>
  <security>
      <all-permissions/>
  </security>
  <resources>
    <j2se version="1.4+"/>
    <jar href="testjar.jar"/>
  </resources>
  <resources os="Windows">
    <j2se version="1.4+"/>
    <nativelib href="lib/lwjgl-win32.jar"/>
  </resources>
  <resources os="Mac OS">
    <j2se version="1.4+"/>
    <nativelib href="lib/lwjgl-osx.jar"/>
  </resources>
  <resources os="Linux" arch="i386">
    <j2se version="1.4+"/>
    <nativelib href="lwjgl-linux.jar"/>
  </resources>
  <property key="java.library.path" value="." />
  <application-desc main-class="Game" />
</jnlp>


[edit: updated link]

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #4 - Posted 2004-05-24 14:38:24 »

1  
2  
3  
4  
5  
6  
7  
8  
Java Web Start 1.4.2_03 Console, started Mon May 24 18:28:02 CEST 2004

Java 2 Runtime Environment: Version 1.4.2_03 by Sun Microsystems Inc.

java.lang.NoClassDefFoundError: org/lwjgl/Display

      at Game.<clinit>(Game.java:26)
[...]


To get the console:

-start javaws
-file->preferences->advanced->output options->console

弾幕 ☆ @mahonnaiseblog
Offline ribot

Junior Member




Ribot - mobile UI specialist


« Reply #5 - Posted 2004-05-24 14:47:02 »

Thanks for that, just found that out 10 mins ago by accident. Wink So basically, it looks like the lwjgl package isn't being loaded for some reason (line 26 is the first location where I create any objects - in this case it is the first object created from the LWJGL libs.

Maybe, what i'm doing is totally wrong?  Would any changes have to be made to org.lwjgl.test.opengl.Game in order to make it webstart compatible?

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #6 - Posted 2004-05-24 14:55:43 »

Now that new JNLP file of yours doesn't look anything like mine, does it? And if it did, guess what! It'd work Wink

Cas Smiley

Offline kevglass

JGO Kernel


Medals: 153
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #7 - Posted 2004-05-24 15:31:37 »

Looks like you just missed out the actual java for LWJGL. (lwjgl.jar?) You've packaged up the native jars but not the Java unless of course testjar.jar contains the whole of LWJGL aswell as your code?

Kev

Offline kevglass

JGO Kernel


Medals: 153
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #8 - Posted 2004-05-24 15:38:13 »

Having dug around a bit in your distro it appears you've packaged the actual java as the "nativelib" tag and no included the actuall dll at all?

The java won't work from the nativelib tag since its expecting to find a native library in a signed jar there. You'll also need to use a "jar" tag to include the lwjgl.

Just like in the Alien Flux JNLP Wink

Kev

Offline ribot

Junior Member




Ribot - mobile UI specialist


« Reply #9 - Posted 2004-05-24 17:52:58 »

yep, feeling very dumb at the moment...I stumbled upon JCD webstart demos and had a look at them, analysing the various jar files he was using and came to your conclusion.  Well, off to package up these classes and native files.

Expect more postings.  :/  Sorry.

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ribot

Junior Member




Ribot - mobile UI specialist


« Reply #10 - Posted 2004-05-24 19:32:10 »

It now works (well, at least on my systems XP and OS X using firefox).  I would welcome any additional bug reports.

A quick summary of problems fixed included jar paths and their contents.  duh, silly me.

Windows Users

In IE(6SP1) the jnlp file does not launch webstart but instead renders itself as xml.  Any ideas and feedback on this?  Is this something to do with my server rather than my jnlp file?

OS X Users

There is currently one outstanding problem on OS X with the Safari browser - the browser does not launch webstart but instead just renders the main 'information' text from the jnlp file.  Does anyone else have this problem?

Notes

I have updated all previous links in this thread to link to my webstart page.

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
Offline tom
« Reply #11 - Posted 2004-05-24 20:58:52 »

You have to set the MIME type on the server, or use a php or perl script as described in the webstart faq.

Offline ribot

Junior Member




Ribot - mobile UI specialist


« Reply #12 - Posted 2004-05-24 21:22:54 »

Excellent, says Smithers.  IE 6 nows works, but at the moment Safari just downloads the php file to disk.  :/

Thanks for the link Tom!

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
Offline Middy

Junior Member




Java games rock!


« Reply #13 - Posted 2004-05-25 04:53:29 »



The demo made my screen go fubar.... Tried todo 140HZ . But I have those problems with some of matzons demoes as well (Grass demo)


When do I get my makeMyGameAsILike() extension?
Offline ribot

Junior Member




Ribot - mobile UI specialist


« Reply #14 - Posted 2004-05-25 09:14:58 »

Middy: I get the same as you, with the demo setting a refresh of 140Hz.  Not sure why that figure is picked, but the demo still works very smootly for me on my sys (XPSP1, Geforce2mx 64MB, PIII 1GHz).  What are the specs of your sys?

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #15 - Posted 2004-05-25 11:47:37 »

What version of LWJGL is this? The pre-0.9 versions tended to allow modes that the monitor didn't handle.

Cas Smiley

Offline ribot

Junior Member




Ribot - mobile UI specialist


« Reply #16 - Posted 2004-05-25 15:02:24 »

0.9 - downloaded from LWJGL.org yesterday.

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
Offline Middy

Junior Member




Java games rock!


« Reply #17 - Posted 2004-05-25 16:05:21 »

AMD XP 2000+, Gforce 3 ti 200, XP (no service pack1 )

When do I get my makeMyGameAsILike() extension?
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #18 - Posted 2004-05-25 16:47:16 »

Looks like the display mode selector can still turn up the odd dicky mode. No harm in using a sanity check.

Cas Smiley

Offline ribot

Junior Member




Ribot - mobile UI specialist


« Reply #19 - Posted 2004-05-25 17:15:40 »

I'll make sure to add checkSanity() to the constructor then!

Wink

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #20 - Posted 2004-05-26 06:18:26 »

Wink It's probably wise just to filter out any mode over 85Hz.

Cas Smiley

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.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (20 views)
2014-08-16 06:12:11

Rayexar (59 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!