Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (582)
Games in Android Showcase (163)
games submitted by our members
Games in WIP (633)
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  
  Should I wrap my JAR in an EXE?  (Read 1114 times)
0 Members and 1 Guest are viewing this topic.
Offline AvivC

Junior Devvie

Projects: 1

« Posted 2014-03-22 17:26:51 »

When distributing my game (for example, on this site): Should I provide an EXE launcher that wraps the JAR, only the JAR, or both? Thanks
Offline Drenius
« Reply #1 - Posted 2014-03-22 17:48:12 »

Depends on what you want.
For a game you run from one file a JAR is normally fine.
If it is a big game which has to install itself first, an EXE is sometimes a good idea, at least for having an icon and such...

You should stop creating topics for this btw..
Offline Longarmx
« Reply #2 - Posted 2014-03-22 18:29:00 »

Just remember that .exes can only be run on windows. Provide a startup script or something for other platforms(.bat/.sh)

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Drenius
« Reply #3 - Posted 2014-03-22 20:22:47 »

Offline Longarmx
« Reply #4 - Posted 2014-03-22 21:23:26 »


How does this help the topic/op in any way? I was just reminding the op that distributing as an exe is not always the best option. Contribute to the topic instead of just filling it with meaningless posts.

Offline Drenius
« Reply #5 - Posted 2014-03-22 21:27:02 »

Ok, sorry, you are right.
Lets get back now.
Offline Jimmt
« League of Dukes »

JGO Kernel

Medals: 161
Projects: 5
Exp: 3 years

« Reply #6 - Posted 2014-03-22 21:47:42 »

Definitely use the exe/platform specifics if you're looking for maximum exposure. A lot of people won't know what a jar file is, so they won't know to click on it. Obviously for small projects this doesn't make much of a difference, though.
Offline AvivC

Junior Devvie

Projects: 1

« Reply #7 - Posted 2014-03-23 10:05:40 »

Thanks all of you. So I see an .exe is usually recommended (for Windows).

Could you suggest a good program to do an EXE launcher? Is Launch4j okay?

Also, is there a way to make sure that the EXE itself is compatible on all Windows platforms?
Offline princec

« JGO Spiffy Duke »

Medals: 507
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #8 - Posted 2014-03-23 11:09:26 »

L4J does the job admirably. The .exe will run on any Windows platform; whether the rest of it does is another matter.

Cas Smiley

Offline SHC
« Reply #9 - Posted 2014-03-23 11:11:57 »

In mac and linux, I simply change the .exe extension to .jar and it runs perfectly with Jar Launcher. (Note that this works only for java exe wrappers)

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

« JGO Plugged Duke »

Medals: 191
Projects: 12
Exp: 12 years

klaatu barada nikto

« Reply #10 - Posted 2014-03-26 18:16:20 »

You might also want to check out JWrapper:

I personally prefer jars, but I understand the appeal of executables.

Static Void Games - GameDev Tutorials, Free Hosting for Java and JavaScript games!
Static Void Games forum - Come say hello!
Offline gouessej
« Reply #11 - Posted 2014-03-26 19:19:43 »

Just remember that .exes can only be run on windows. Provide a startup script or something for other platforms(.bat/.sh)
You can put your JAR into a RPM with Redline, it's even better.

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Ralphanese (17 views)
2015-05-29 13:07:55

Gibbo3771 (15 views)
2015-05-29 06:54:17

Ralphanese (23 views)
2015-05-28 16:52:52

theagentd (31 views)
2015-05-27 22:21:17

theagentd (35 views)
2015-05-27 22:21:08

CopyableCougar4 (25 views)
2015-05-27 19:24:50

MrMapcom (24 views)
2015-05-23 20:26:16

MrMapcom (32 views)
2015-05-23 20:23:34

Waterwolf (37 views)
2015-05-20 15:01:45

chrislo27 (44 views)
2015-05-20 03:42:21
Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

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