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 (406)
games submitted by our members
Games in WIP (289)
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 465 times)
0 Members and 1 Guest are viewing this topic.
Offline 20thCenturyBoy

Junior Member


Medals: 1


So much to learn, so little time.


« Posted 2013-01-31 15: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 15:24:36 »

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

Offline Oskuro

JGO Coder


Medals: 16


Coding in Style


« Reply #2 - Posted 2013-01-31 16: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 Ninja


Medals: 66



« Reply #3 - Posted 2013-01-31 16: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

JGO Knight


Medals: 14
Projects: 5


iDream


« Reply #4 - Posted 2013-01-31 16: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();
Offline Cero
« Reply #5 - Posted 2013-01-31 19: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
« League of Dukes »

JGO Kernel


Medals: 195
Projects: 3


Eh? Who? What? ... Me?


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

http://downloads.puppygames.net/SetupDroidAssault.exe
http://downloads.puppygames.net/DroidAssault_MacOSX.zip
http://downloads.puppygames.net/DroidAssault.tar.gz

sorted, job's a good un.

Cas Smiley

Pages: [1]
  ignore  |  Print  
 
 

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

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 (60 views)
2013-05-17 21:29:12

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

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

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

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

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

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

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

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

UnluckyDevil (175 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.081 seconds with 21 queries.