Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
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 a Java game on Steam  (Read 1841 times)
0 Members and 1 Guest are viewing this topic.
Offline yo252yo

Junior Newbie





« Posted 2017-09-07 15:45:10 »

Hello,
Forgive me for asking, but I fail to find documentation related to my problem.
I'm a hobbyist game developer preparing my first release on Steam. My game has only one dependency: java JRE. Surely there is other games on the platform with such a common dependency. However I do not understand what is the preferred way to handle this dependency as of now:
- It seems that packaging the JRE into my binaries is frowned upon by Oracle and not really a recommended practice.
- It seems that install script will only help me on Windows, not Linux or Mac.
- It seems that any solution that I've found on the web mentioning shared package may be deprecated ?

Would you please advise me on the best way to handle a JRE dependency?
Thanks a lot!
Online princec

« JGO Spiffy Duke »


Medals: 974
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2017-09-07 16:23:38 »

Embed the whole JRE structure in your game. This is actually what Oracle want you to do. They only take umbrage, in theory, if you change anything in the JRE distribution. (In practice they don't give a crap but don't tempt fate).

Cas Smiley

Offline nsigma
« Reply #2 - Posted 2017-09-07 16:41:47 »

They only take umbrage, in theory, if you change anything in the JRE distribution.

That's changing too. If you read the blog post I linked to in the Oracle OpenJDK thread there's a bit about this, but also a reference to jlink coming in Java 9 that will allow for building custom runtime images of modules.

Right now, if you use OpenJDK anyway (eg. Azul has cross-platform versions) you can pull it apart however you want.

Praxis LIVE - hybrid visual IDE for (live) creative coding
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline yo252yo

Junior Newbie





« Reply #3 - Posted 2017-09-08 11:38:23 »

Thanks a lot to you both! That's very reassuring Smiley
I've found a couple of links around so I should be able to take it from here, but if you'd like to tell me your favorite tool to package a JRE with my app that would be most appreciated Smiley
Online princec

« JGO Spiffy Duke »


Medals: 974
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2017-09-08 12:10:46 »

I use no special tools as such, I just tar up the entire directory structure, game and all, and gzip.

Cas Smiley

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 119
Projects: 15


★★★★★


« Reply #5 - Posted 2017-09-08 16:42:26 »

Also relevant to this topic in case anyone missed it, Oracle now plans to ship OpenJDK builds (GPL) which will be identical to the Oracle JDK (BCL). See Java: Free At Last.
Offline nsigma
« Reply #6 - Posted 2017-09-08 18:47:40 »

Also relevant to this topic in case anyone missed it, Oracle now plans to ship OpenJDK builds (GPL) which will be identical to the Oracle JDK (BCL). See Java: Free At Last.

That's what the other thread referred to earlier (Oracle OpenJDK, every 6 months) is about.  Lousy title, I know!   Smiley  Still, I find the 6-monthly releases at least as interesting as the license change, but then I never use Oracle's releases anyway - OpenJDK on all 3 OS's here.

Praxis LIVE - hybrid visual IDE for (live) creative coding
Online princec

« JGO Spiffy Duke »


Medals: 974
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #7 - Posted 2017-09-08 19:12:36 »

The licensing change is actually hugely significant, because it means chopping up JDKs to make them smaller.
And it means finally a path to PS4 and XB1 if someone can be arsed.

Cas Smiley

Offline nsigma
« Reply #8 - Posted 2017-09-08 20:18:15 »

You have heard of this OpenJDK thing, right?!  Tongue  It's 99% (ish) the same code, and nothing has been stopping you from doing any of those things for years.  Which means there was already a path to PS4 and XB1 with that license, by which I assume no-one could be arsed.  Grin [EDIT - ignoring the mention of an open build and testing infrastructure which is interesting.]

Praxis LIVE - hybrid visual IDE for (live) creative coding
Online princec

« JGO Spiffy Duke »


Medals: 974
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #9 - Posted 2017-09-08 22:17:37 »

Yeah, I've been using OpenJDK for years (at least on Mac and Linux, haven't bothered with Windows yet). I think though that the main issue was there not being a credible implementation of the JDK (well, HotSpot) anywhere else without paying Oracle money. So no useful JVM on consoles, Raspberry Pi, etc.

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cygnus
« Reply #10 - Posted 2017-09-10 01:27:51 »

Wait a second, isn't there some Steam feature that allows you to install dependencies? I've seen a game install VC redist tons of times, why not the same with the JRE?
Offline VaTTeRGeR
« Reply #11 - Posted 2017-09-10 08:03:48 »

There's no reason to install anything, the JVM can be put in your game folder and be used from there, as an embedded runtime environment, like it's supposed to.
Why should you f**k around with the users system by installing anything except of your game files into the steamapps folder? This only gets you esoteric bugs and then bad reviews...
Offline cygnus
« Reply #12 - Posted 2017-09-14 18:00:13 »

I see your point. That does seem like a better idea Smiley
Pages: [1]
  ignore  |  Print  
 
 

 
Ecumene (110 views)
2017-09-30 02:57:34

theagentd (136 views)
2017-09-26 18:23:31

cybrmynd (245 views)
2017-08-02 12:28:51

cybrmynd (241 views)
2017-08-02 12:19:43

cybrmynd (240 views)
2017-08-02 12:18:09

Sralse (254 views)
2017-07-25 17:13:48

Archive (864 views)
2017-04-27 17:45:51

buddyBro (1008 views)
2017-04-05 03:38:00

CopyableCougar4 (1569 views)
2017-03-24 15:39:42

theagentd (1373 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!