Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
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  
  Embedded JVM for Windows Native Deployment seems viable  (Read 1218 times)
0 Members and 1 Guest are viewing this topic.
Offline moogie

JGO Ninja


Medals: 15
Projects: 6
Exp: 10 years


Java games rock!


« Posted 2014-05-08 13:57:53 »

With more end users having no JVM installed on the windows platform, I have been investigating alternatives on providing a native executable version of my java application.

I have tried:

1. Excelsior JET but I will not be able to convince my work to pay for a license Sad
2. Java Native Compiler... but that is limited to java 1.5
3. Launch4J to make a exe-jar wrapper + embed a 1.7 JRE... way too large even when compressed using LZMA ( > 44Meg ) and the license is such that you cannot remove unwanted components.

Then I found that Azul Systems provide a Windows binary of OpenJDK (called Zulu).
4. Launch4J to make a exe-jar wrapper + embed 1.7 Zulu JRE .. getting better( ~ 17 Meg )
5. Launch4J to make a exe-jar wrapper + embed 1.7 Zulu JRE, but perform Pack200 on all the jars +  batchfile to unpack200 the jars.... better again!( ~ 12 Meg )
6. Launch4J to make a exe-jar wrapper + embed 1.7 Zulu JRE, but perform Pack200 on all the jars +  batchfile to unpack200 the jars + perform lossless shrinking of the JRE dlls,gifs,exes,etc... ( ~ 11 Meg )

That seems quite reasonable... and that is without stripping any of the actual JRE functionality.

Java4k RIP 2014
Online BurntPizza

« JGO Bitwise Duke »


Medals: 291
Exp: 5 years



« Reply #1 - Posted 2014-05-08 14:07:49 »

I believe JET is still having the charity deal, might want to check that out.

Also check out Packr if you haven't seen it yet. It does some minimization, but badlogic is planning to do more I believe. Using OpenJDK (for licensing issues surrounding JRE stripping), you can also get ~11Mb jars IIRC, and I think that is without pack200 and other tricks. I still have yet to play with it, but I'm going to try it out soon.
Offline princec

« JGO Spiffy Duke »


Medals: 435
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #2 - Posted 2014-05-08 14:46:12 »

We're using OpenJDK on Mac and Linux to do just that. We've not bothered with using it for Windows because there's no real need.

And also... 44mb suddenly too big to deploy? That's ... tiny. Times have changed!

Cas Smiley

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

JGO Kernel


Medals: 107
Projects: 11
Exp: 12 years


klaatu barada nikto


« Reply #3 - Posted 2014-05-08 15:06:01 »

You also might want to check out JWrapper.

Static Void Games - Play indie games, learn game programming, upload your own games!
Offline dleskov

Senior Devvie


Medals: 10



« Reply #4 - Posted 2014-05-08 15:10:25 »

I believe JET is still having the charity deal, might want to check that out.
The deal runs until the end of May, but it's the Standard Edition, which does not include Java Runtime Slim-Down.

1. Excelsior JET but I will not be able to convince my work to pay for a license Sad
Even with the small business discount? (Assuming your "work" is a small company.)

Offline Cero
« Reply #5 - Posted 2014-05-08 19:26:27 »

>44 Meg = too big

Rage was too big with what 20-30GB. I'm hard pressed to find any game < 100mb on steam
2GB for a game is absolutely ok.

44megs... :D

Offline Grunnt

JGO Kernel


Medals: 95
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #6 - Posted 2014-05-08 20:01:09 »

How does OpenJDK performance compare to Oracle's JRE? (on Windows) I kind of have the assumption that it won't be as good, but never bothered to test it.

Offline princec

« JGO Spiffy Duke »


Medals: 435
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #7 - Posted 2014-05-08 20:26:02 »

Near-as-dammit the same I should think.

Cas Smiley

Offline moogie

JGO Ninja


Medals: 15
Projects: 6
Exp: 10 years


Java games rock!


« Reply #8 - Posted 2014-05-08 21:28:12 »

Maybe you are right. And I am being a little too stingy but I guess I have always been embarrased about pushing Java over C++ and the like for a end product that was going to be a native executable on a system without java installed. The java version was always laughed at for being bloated.

But times have changed and doubling the size of the application is not the problem it used to be.

That being said, I do like the non-oracle-ness of the open jre windows port Smiley makes things a lot easier for the license ****s at work ;P

And that the open jdk jre compresses down quite nicely without any real effort is icing on the cake!

oh wow... i did not know that n.a.z.i.s was worth of censoring! crazy!

Java4k RIP 2014
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 81
Projects: 15


★★★★★


« Reply #9 - Posted 2014-05-08 21:37:07 »

btw in case you missed it, do check out Java 8's Compact Profiles, there is a blog post about it here. Compact Profile 1 is suppose to be less than 14mb in size.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline moogie

JGO Ninja


Medals: 15
Projects: 6
Exp: 10 years


Java games rock!


« Reply #10 - Posted 2014-05-08 22:13:35 »

I dont see awt in any of the compact profiles... maybe I am blind.

seems odd that open jdk which has not been trimmed of standard jre functionality (i.e. include awt ) when just simily compressed using 7zip is 17meg... what does the oracle version has that openjdk does not?

Java4k RIP 2014
Offline moogie

JGO Ninja


Medals: 15
Projects: 6
Exp: 10 years


Java games rock!


« Reply #11 - Posted 2014-05-08 22:14:22 »

Thanks for the reference to Packr. I did not find that in my investigations... looks like the tool that I would use

Java4k RIP 2014
Offline KevinWorkman

JGO Kernel


Medals: 107
Projects: 11
Exp: 12 years


klaatu barada nikto


« Reply #12 - Posted 2014-05-09 01:43:13 »

JWrapper can get the JRE down to 7 MB:

Hello World bundled with 1.5 JRE - around 7MB (windows)
Hello World bundled with 1.6 JRE - around 11MB (windows)
Hello World bundled with 1.7 JRE - around 16MB (windows)

Source: http://www.jwrapper.com/features.html

Static Void Games - Play indie games, learn game programming, upload your own games!
Offline dleskov

Senior Devvie


Medals: 10



« Reply #13 - Posted 2014-05-09 04:18:46 »

T:\Hello>dir hello-setup*.exe
   .  .  .
05/09/2014  11:15 AM         6,735,625 hello-setup-jrsd.exe
05/09/2014  11:22 AM        11,174,954 hello-setup.exe

32-bit Excelsior JET Pro 9.0 MP1, Java 1.7.0_40, with and without Java Runtme Slim-Down.


Offline dleskov

Senior Devvie


Medals: 10



« Reply #14 - Posted 2014-05-09 04:22:41 »

I dont see awt in any of the compact profiles... maybe I am blind.
It is not there... JavaFX is the future, did not you know that?

Offline moogie

JGO Ninja


Medals: 15
Projects: 6
Exp: 10 years


Java games rock!


« Reply #15 - Posted 2014-05-09 06:07:31 »

It is not there... JavaFX is the future, did not you know that?

I do not discount that, but there is a lot of existing java swing applications out there.


Maybe it was just my ignorance but I am quite happy to see that there are quite a few valid alternative solutions out there now that java for the end user client is pretty much dead for the avgerage joe.

Java4k RIP 2014
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.

rwatson462 (37 views)
2014-12-15 09:26:44

Mr.CodeIt (31 views)
2014-12-14 19:50:38

BurntPizza (62 views)
2014-12-09 22:41:13

BurntPizza (99 views)
2014-12-08 04:46:31

JscottyBieshaar (60 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (77 views)
2014-11-29 21:32:03

toopeicgaming1999 (138 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (38 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!