Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (789)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
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  
  Deploying JRE with a game?  (Read 3643 times)
0 Members and 1 Guest are viewing this topic.
Offline 20thCenturyBoy

Senior Devvie

Medals: 3

So much to learn, so little time.

« Posted 2013-01-31 14:18:00 »

Assuming that lots of people do not have Java 7 installed, and the fact I can't force them to install it, is it feasible to include the Java JRE with my game in a subfolder of the game? So that only my game uses it? The JRE wouldn't be "installed" as such,  just available in a folder so I could run javaw.exe. I know this is a "waste" in terms of disk space and download size but is that a problem in these days of TB disks and broadband? A big advantage is that I could guarantee the exact version of the JRE because I would be supplying it! It also means the user would be unaware that Java is there as some users are "Java haters" because of the FUD around applet security.

What do you think?

"I have never done unit testing and I don’t find it a very useful concept" - Jonathan Blow
Offline 65K
« Reply #1 - Posted 2013-01-31 14:24:36 »

That's what I do for all the reasons you mentioned.

Lethal Running - a RPG about a deadly game show held in a futuristic dystopian society.
Offline Oskuro

JGO Ninja

Medals: 77
Exp: 10 years

Coding in Style

« Reply #2 - Posted 2013-01-31 15:13:47 »

Even if you prompt users to install the Java version you supply, it wouldn't be different to the many games that supply their own MSVC or DirectX binaries and prompt for their installation.

The ability to run silently on your provided JRE is certainly a plus.

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

JGO Kernel

Medals: 518

« Reply #3 - Posted 2013-01-31 15:31:01 »

I'm pretty sure that Cas has done a write-up of this.  You don't need to install anything (a number of programs ship with a fixed JRE).  You simply need either a shell script or a small native executable to launch the local JRE (with your chosen set of options...and you can clear should clear/set any environment vars that a user may have manually set), which in turn runs your game.
Offline Varkas
« Reply #4 - Posted 2013-01-31 15:47:55 »

I know this is a "waste" in terms of disk space and download size but is that a problem in these days of TB disks and broadband?

Waste of energy.

The mentioned percentage of waste shrinks, if you deliver more program with the JRE Wink

On a more serious level, bundle the JRE with your game and it's good.

if (error) throw new Brick(); // Blog (german):
Offline Cero
« Reply #5 - Posted 2013-01-31 18:00:03 »

aside the obvious reason its good to hide technology from the user and make something "just work"
and especially in java's case, I want to avoid stupid java hate

Offline princec

« JGO Spiffy Duke »

Medals: 1085
Projects: 3
Exp: 20 years

Eh? Who? What? ... Me?

« Reply #6 - Posted 2013-01-31 21:14:36 »

sorted, job's a good un.

Cas Smiley

Pages: [1]
  ignore  |  Print  

hadezbladez (2595 views)
2018-11-16 13:46:03

hadezbladez (928 views)
2018-11-16 13:41:33

hadezbladez (2550 views)
2018-11-16 13:35:35

hadezbladez (499 views)
2018-11-16 13:32:03

EgonOlsen (3675 views)
2018-06-10 19:43:48

EgonOlsen (4028 views)
2018-06-10 19:43:44

EgonOlsen (2439 views)
2018-06-10 19:43:20

DesertCoockie (3246 views)
2018-05-13 18:23:11

nelsongames (3292 views)
2018-04-24 18:15:36

nelsongames (4262 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 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‑
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!