Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (489)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (555)
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 to bundle a JRE  (Read 2018 times)
0 Members and 1 Guest are viewing this topic.
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Posted 2005-06-07 18:38:40 »

What's the best way to do this? Huh

I could just pass control to a copy of the sun installer, but the user would get all the dialog options.  Maybe there's a silent install option.  Even so, how do I make this JRE private and not muck up the users current configuration? Could I just zip my existing JRE up myself instead?  Would I need to create any keys in the windows registry?

Alan  Smiley

Time flies like a bird. Fruit flies like a banana.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 783
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2005-06-07 18:47:53 »

Yes, it's as simple as that.

1. copy and paste the JRE-dir into your game-dir
2. make the launcher (batch file?) use the java executable of the private JRE
3. zip the gamedir
4. distribute the zip

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #2 - Posted 2005-06-07 19:00:07 »

Riven,

Thanks, I couldn't believe it would be that easy  Grin

Alan

Time flies like a bird. Fruit flies like a banana.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline hvor2

Junior Member




Beyond mind, there is an awareness...


« Reply #3 - Posted 2005-10-20 08:50:11 »

Riven, I am thinking about same problem here. It seems unpractical to me, though, to include jre (cca 60 MB) with my game that is 10 MB "heavy". What do you think, is there better solution? And I don't think that one is permitted to cut the size of jre...

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 783
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #4 - Posted 2005-10-20 09:30:20 »

Zipped JRE is "only" 15-16MB

If you don't want to break the JRE distribution-license, you're pretty much stuck here.
note the if...

Aren't you glad the Google/Sun deal now also includes GoogleToolbar in the JRE? Roll Eyes

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline hvor2

Junior Member




Beyond mind, there is an awareness...


« Reply #5 - Posted 2005-10-20 11:43:44 »

[quote ]

Quote
Zipped JRE is "only" 15-16MB
If you don't want to break the JRE distribution-license, you're pretty much stuck here.

Yes,  Tongue, "only" 15 MB. Tnx for info on toolbar, I am going to check what's that new agreement...

Offline Timedancer

Senior Newbie




Flower power!


« Reply #6 - Posted 2005-10-20 15:25:27 »

I want to do this too, but I have run into a problem. I installed the latest JRE in my game’s directory. Shortly afterwards, it pops up the “Java updater” dialog. This could be a bit confusing for the non-technical user. But what is seriously wrong, is that if you click on “install”, it does not install the updated JRE over old one. It installs a new version of the JRE in the default C:/JRE… folder. Then the next time Java Updater runs, my bundled version has not been updated, so it asks to install a new JRE again. With the same result.  Anyone else come across this?  Seems like the Updater should update the location it is running from.

I'm thinking that this is because I actually installed the JRE in my game directory. If I just copy and paste the JRE folder into the game directory as Riven suggests, does this stop the Java Updater from kicking in?




Offline Riven
« League of Dukes »

JGO Overlord


Medals: 783
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #7 - Posted 2005-10-20 17:19:24 »

Don't ship an installable JRE, just copy all files in the JRE directory and zip em.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
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.

Nickropheliac (13 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (27 views)
2014-08-22 19:31:30

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

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

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

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

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

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

BurntPizza (47 views)
2014-08-09 21:09:32
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!