Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (498)
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  
  How do I pre-install Webstart applications?  (Read 1321 times)
0 Members and 1 Guest are viewing this topic.
Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Posted 2003-10-01 17:52:03 »

Here's the scenario:
I've got a CD, with Sun j2re1.4.2_01 on it, and my game, and an installer. I want the game to be launched from a local jnlp file and grab all the classes from the local installation - AND check the web for newer ones if there are any. Geddit? Webstart, with pre-installed applications. But how? Is this something to do with the "installer" apis in Webstart?

Cas Smiley

Offline kevglass

JGO Kernel


Medals: 85
Projects: 25


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2003-10-01 18:01:31 »

This is essentially something I asked a few weeks back. I think what it comes down to is needing a version of JNLP that you can directly control, tell it to look here and there.. run it just before your main() comes in.

OpenJNLP is a possibility, although I couldn't get it to do what I'd like. The only other thing I'm considering is writing a light weight version of JNLP to only support the "normally used" features.

Kev

Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #2 - Posted 2003-10-01 22:08:45 »

Kev is right. Web Start doesn't allow this, but the JNLP spec would allow for it, I think.  Grab an open source JNLP implementation and hack it.

Essentially you want to 'pre-download' or initialize Web Start's cache.  you might be able to hack the cache of Web Start.. but it seems like a "bad idea". If you had control over how the applications were stored - buy implementing the JNLP app yourself then it would be easy.

I think there should be a project for a JNLP core that we could put in our apps.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Athomas Goldberg

Junior Member




Grrrrrr...


« Reply #3 - Posted 2003-10-01 23:51:28 »

Quote
OpenJNLP is a possibility, although I couldn't get it to do what I'd like. The only other thing I'm considering is writing a light weight version of JNLP to only support the "normally used" features.

What issues did you run into with OpenJNLP?

I used it as part of a JXTA-related project I was involved in to JNLP-enable services that are downloaded after the app has started, (the classic "web-start" no-good scenario) and this seemed to work out pretty well. That said, it was a relatively simple and straightforward use-case so I probably wasn't trying to do anything as sophisticated as what you need for your game. I'm curious as to where one is likely to start hitting walls with OpenJNLP when trying to do fancier stuff.


Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline kevglass

JGO Kernel


Medals: 85
Projects: 25


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #4 - Posted 2003-10-02 06:38:38 »

TBH, I can't remember. It was a month or so a go and I really didn't spend much time looking at it (and didn't keep my normal notes! - argh). I just have a vague recolation in my mind that something didn't seem to be available...

I think I might need to revisit it for the current project and see if the same problem comes up. I'll post back.

Kev

Offline kevglass

JGO Kernel


Medals: 85
Projects: 25


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #5 - Posted 2003-11-15 17:32:04 »

Further to this:

I revisited OpenJNLP to remember that it was simply the full bulk of thing that turned me off. I don't really need a full compliant JNLP processor, I just want something that'd read what it needs and grab me some files.

And so... 3 hours ago I started writing one. It seems to work ok. Its available as a download here:

http://www.newdawnsoftware.com/martian/index.php?page=getit

Source is available if anyone wants it...

Kev

Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #6 - Posted 2003-11-15 20:29:32 »

Was an RFE ever filed to allow the sort of thing Cas was after?  I think it would make sense if there was a programatic way to install through Web Start, so clicking your apps icon to start it would benefit from the auto-update code that is already in Web Start.

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.

xsi3rr4x (16 views)
2014-04-15 18:08:23

BurntPizza (14 views)
2014-04-15 03:46:01

UprightPath (27 views)
2014-04-14 17:39:50

UprightPath (12 views)
2014-04-14 17:35:47

Porlus (29 views)
2014-04-14 15:48:38

tom_mai78101 (51 views)
2014-04-10 04:04:31

BurntPizza (110 views)
2014-04-08 23:06:04

tom_mai78101 (211 views)
2014-04-05 13:34:39

trollwarrior1 (179 views)
2014-04-04 12:06:45

CJLetsGame (185 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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!