Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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 problems  (Read 2194 times)
0 Members and 1 Guest are viewing this topic.
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Posted 2003-11-16 12:16:44 »

I've been following Kev's rather handy webstart tutorial to get my app webstart-able, but can't seem to get the last bit done. My current effort is http://co-project.lboro.ac.uk/users/cojc5/Webstart/VecriptEditor.jnlp but it exits straight after downloading the jars, no error message and nothing in the webstart log. Sad

The server is returning the correct MIME type, I've recoded my app to load resources from jar files. I've also packaged up Jogl and its native libs into jars and signed and uploaded everything.

But I can't find a good way to figure out whats going wrong, looking in the webstart cache and all the files seem to be there, and its unpacked the jogl dll into its own dir (which is how Wurm is in my cache as well).

I think its my main class - the tutorial doesn't mention it, so i when hunting though Wurms webstart. I ended up adding a main="true" in the appropriate jar tag, and a main-class="com.vecript.core.Vecript" to the application-desc at the bottom. I've also got the main class specified in the manifest of the appropriate jar file as well.

So what am i missing? Anyone any ideas?

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline kevglass

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2003-11-16 12:32:07 »

Well, after a bit of deduction Smiley

I tried the webstart, it did what you said. Infact it appears to be running fine.

So.. I downloaded your files manually and ran the jar with:

java -jar VecriptEngine.jar

Which appeared to do nothing also... until I noticed Log.html (you can find what I got out at http://www.cokeandcode.com/Log.html).

It seems to fail because of missing preferences or something. Anyone, I check in

C:\program files\java web start

and found another Log.html, which seems to imply your web start is work fine Smiley but you code isn't Sad.

Hope this helps,

Kev

Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #2 - Posted 2003-11-16 12:38:48 »

Heh, you beat me to it - seems the initial problem was that you need to specify '+editormode' as a command line arg or a valid .scene filename otherwise it just quits. I added the editor mode flag to the jnlp and it actually starts up now, I think you just got in after i'd added it. Smiley

Checking in my own program file\webstart dir doesn't show my log file though Shocked Whats the proper practice for such things? I don't want to clog up a users root dir with my own files.

Missing prefs isn't a problem, it'll load in defaults if not found, and create the config file on exit for next time (again, where should a webstart app put these?).

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kevglass

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #3 - Posted 2003-11-16 12:52:08 »

Top stuff! Jumped too early Smiley

Um, config files, well as far as I know there is no standard practive. I generally just detect users home directory, create a ".<project>" directory and stick the preferences in there.

Kev

Offline tom
« Reply #4 - Posted 2003-11-16 13:33:21 »

There is the PersistenceService. Can be usefull even though it was meant for untrusted applications: http://java.sun.com/products/javawebstart/docs/javadoc/index.html

Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #5 - Posted 2003-11-16 18:24:27 »

The PersistanceService looks a little too restrictive, the idea behind the log and config files is that they're human readable (and editable for the config) so they need to go somewhere concrete. I've taken Kev's method of a sub dir in user.home, and that works well enough.

Surprisingly its only taken about 3 or 4 days to totally convert from a stand-alone app to a webstart one (mainly lots of resource loading that had to change). Its very nice to be able to just repackage and upload and have it all work without any hastle. Smiley

Webstart: It Just Works TM

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #6 - Posted 2003-11-16 18:26:55 »

Oh, from now on the link above will be the current dev. version if anyone feels like giving it a try. The UI is probably pretty confusing to anyone but me but feel free to tinker if you want. Grin

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline kevglass

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #7 - Posted 2003-11-16 18:30:03 »

I had a play earlier, got really confused. Smiley

Kev

PS. Welcome to God's country.

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.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (26 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (13 views)
2014-07-29 10:59:34

E.R. Fleming (34 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (44 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

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

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
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!