Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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 1126 times)
0 Members and 1 Guest are viewing this topic.
Offline princec
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« 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!
Play the free demo of Revenge of the Titans!
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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« 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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« 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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (131 views)
2013-05-17 21:29:12

alaslipknot (140 views)
2013-05-16 21:24:48

gouessej (170 views)
2013-05-16 00:53:38

gouessej (164 views)
2013-05-16 00:17:58

theagentd (174 views)
2013-05-15 15:01:13

theagentd (159 views)
2013-05-15 15:00:54

StreetDoggy (203 views)
2013-05-14 15:56:26

kutucuk (227 views)
2013-05-12 17:10:36

kutucuk (227 views)
2013-05-12 15:36:09

UnluckyDevil (230 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.095 seconds with 22 queries.