Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (547)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  Question about bundling custom OpenJDK  (Read 6552 times)
0 Members and 1 Guest are viewing this topic.
Offline Roquen
« Reply #30 - Posted 2013-03-27 20:26:23 »

I guess for completeness, for POSIX systems you have 'environ' to get the list (also available as third parameter to main) and 'unsetenv'.  (unistd.h maybe...too lazy to reboot or fire up VirtualBox).  I have touched a mac in a bagillion years, but it should be similar.
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #31 - Posted 2013-03-27 20:37:21 »

What would it fix?

Offline Roquen
« Reply #32 - Posted 2013-03-27 20:40:16 »

If you're asking about clearing environment variables, then HotSpot can be configured by various environment variables which could cause the game to explode or not behave as expected and would be a real nightmare to track down these kinds of "bugs".
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #33 - Posted 2013-03-27 21:39:27 »

...exactly what happens to us Smiley I'm slightly wary of nulling ALL the environment variables out though... are there any known gotchas?

Cas Smiley

Offline Roquen
« Reply #34 - Posted 2013-03-27 22:03:02 »

Environment variables are per process where they are copied from the parent, so no it only effects the game's process.  zeroing out JAVA_HOME and JAVA_TOOL_OPTIONS is probably more than sufficient however.
Offline Roquen
« Reply #35 - Posted 2013-03-27 22:07:50 »

FOLLOW-UP: It just occurred to me that it's pretty possible that examining environment variables only occurs inside the default launcher which would make all of this moot.
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #36 - Posted 2013-03-27 22:08:39 »

It seems to occur from my embedded stuff as well, so far as I can guess (it's very hard to pinpoint)

Cas Smiley

Offline nsigma
« Reply #37 - Posted 2013-03-28 19:21:37 »

I would be interested too in how to make mac and linux deployments.

like I have a structure, a private jre, a shell script or whatever  ... on linux, to me personally, a .deb would be the greatest - with dependencies... then maybe you can even leave out the jre

so:
 ...
- how to make a .deb

Been meaning to write this up for months so this was the final nudge  Grin  This is how Praxis LIVE is packaged as a .deb - http://praxisintermedia.wordpress.com/2013/03/28/packaging-as-a-deb/ It's for a NetBeans platform application, but should be dead easy to adapt if you've got a shell script to launch from.

Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #38 - Posted 2013-03-28 21:02:03 »

We ditched .debs.

Cas Smiley

Offline nsigma
« Reply #39 - Posted 2013-03-28 21:13:53 »

We ditched .debs.

Reasoning? In favour of what?

Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #40 - Posted 2013-03-28 21:23:55 »

We ditched them for tar.gz, because tar.gz works on all Linuxes, so we've only got one Linux version to worry about.

Cas Smiley

Offline nsigma
« Reply #41 - Posted 2013-03-28 21:57:52 »

We ditched them for tar.gz, because tar.gz works on all Linuxes, so we've only got one Linux version to worry about.

For non-installed usage that's fine (I do similar) but if you want to install and integrate with the OS then I don't think it's a good idea to bypass the packaging system. It should be easy enough to convert a .deb as simple as I describe to another type using alien.

Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #42 - Posted 2013-03-28 22:37:00 »

We ditched them for tar.gz, because tar.gz works on all Linuxes, so we've only got one Linux version to worry about.

For non-installed usage that's fine (I do similar) but if you want to install and integrate with the OS then I don't think it's a good idea to bypass the packaging system. It should be easy enough to convert a .deb as simple as I describe to another type using alien.

For that two downloads should be provided: "Download .deb package" and "Download as .tar.gz"
Linux users will understand those descriptions.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #43 - Posted 2013-03-29 11:36:35 »

Can't be bothered. Twice the hassle for me.

Cas Smiley

Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #44 - Posted 2013-03-29 11:44:14 »

Can't be bothered. Twice the hassle for me.

Cas Smiley

Now what? More customers and more hassle or less hassle and less costumers? Wink

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline Cero
« Reply #45 - Posted 2013-03-29 11:49:32 »

For that two downloads should be provided: "Download .deb package" and "Download as .tar.gz"
Linux users will understand those descriptions.
Yeah I'm gonna make a "Download for Debian / Ubuntu / Linux Mint" button and a "Download for other distributions".
Debian distributions seem to be the most popular anyhow, especially for people who might be interested in games, steam is also on ubuntu. You might do a .RPM, but I dont think there is enough people at all.


Can't be bothered. Twice the hassle for me.
Its annoying, but you are just being a lazy ass. Its 10 more minutes.
Actually If I already make a .deb, after that it would only be like 2 more minutes, its just copy and paste and leaving out the other stuff you dont need.


But you also ditched demo version of your game and I also think you are just lazy there. If you design it right, its just one boolean and not putting in the levels and assets needed for the later game... well it depends on the game...

Offline Roquen
« Reply #46 - Posted 2013-03-29 13:13:55 »

Laziness is a virtue for a programmer (yeah,  yeah...up to a point).  My question would be: "Is the extra work worth an estimated number of incremental sells I'll get from doing this?"  I'd guess the answer is (big fat) no.
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #47 - Posted 2013-03-29 13:19:01 »

Roquen would be right. We've noticed no difference in Linux sales once we switched to tar.gz exclusively. No increase in Linux support either. And now I don't have to manage 6 different uploads just to cater for Linux when both other major desktop OSes manage to make do with just 1 each. #Win!

Cas Smiley

Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #48 - Posted 2013-03-29 13:20:40 »

Can't be bothered. Twice the hassle for me.
Its annoying, but you are just being a lazy ass. Its 10 more minutes.
Actually If I already make a .deb, after that it would only be like 2 more minutes, its just copy and paste and leaving out the other stuff you dont need.

But you also ditched demo version of your game and I also think you are just lazy there. If you design it right, its just one boolean and not putting in the levels and assets needed for the later game... well it depends on the game...
We used to do .deb, and flavours in both 32 and 64 bit. Waste of time, increased burden on us, customers didn't care anyway.
All our games are still demos so I'm not sure if you're talking to me there or someone else.

Cas Smiley

Offline Cero
« Reply #49 - Posted 2013-03-29 13:31:10 »

All our games are still demos so I'm not sure if you're talking to me there or someone else.

Old story where you said you stopped having 2 builds, one for a demo. So your games are now full games, even the demo version, but you just have to unlock them.
Not sure if thats still the case

Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #50 - Posted 2013-03-29 14:44:35 »

It never was the case. We've always had demos, and always they've been "unlockable" into full versions.
In a twist of fate though we are thinking of ditching demos as they actively appear to discourage sales.

Cas Smiley

Offline nsigma
« Reply #51 - Posted 2013-03-29 14:45:08 »

Shipping a tar.gz isn't lazy if your game / application runs from a single directory in the user's home directory (what I mean by uninstalled usage). In fact I'm even lazier and ship a zip for uninstalled usage with binaries for all 3 OS in one. However, if you want to install properly (like proper icons, menu item, etc.) then bypassing the package system is a PITA. Don't see the point in trying to support all packaging systems though. .deb and possibly .rpm should cover most, with others pointed at alien.

Worth noting that Ubuntu Software Centre now offers the possibility to sell games too.

Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #52 - Posted 2013-03-29 14:46:10 »

No interest in Ubuntu Software Centre here... Steam FTW.

Cas Smiley

Offline SHC
« Reply #53 - Posted 2013-03-29 15:36:26 »

You can try my apps.

Jar to exe converter

 transfer2pc.weebly.com/1/post/2010/09/jar2exe-converter-11-gui.html

Install Express

 transfer2pc.weebly.com/1/post/2010/12/install-express-beta-1.html

Offline ReBirth
« Reply #54 - Posted 2013-03-30 02:07:39 »

And after all of this, just distribute the jar with .bat, .sh, and .[osx execution script, whatever its name] Grin

Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #55 - Posted 2013-03-30 10:58:02 »

It's not that simple.

Cas Smiley

Offline ReBirth
« Reply #56 - Posted 2013-04-01 01:33:39 »

One thing I know from Windows user, their installed antivirus will scream like girl when find bat files Grin

Pages: 1 [2]
  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.

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

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

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

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

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

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

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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!