Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
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 783 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 »

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

Obviously.

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: 138
Projects: 4
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: 421
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 Kernel


Medals: 100
Projects: 11
Exp: 12 years


klaatu barada nikto


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

You might also want to check out JWrapper: http://www.jwrapper.com/

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

Static Void Games - Play indie games, learn game programming, upload your own games!
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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (29 views)
2014-11-22 12:13:56

xFryIx (71 views)
2014-11-13 12:34:49

digdugdiggy (50 views)
2014-11-12 21:11:50

digdugdiggy (44 views)
2014-11-12 21:10:15

digdugdiggy (38 views)
2014-11-12 21:09:33

kovacsa (62 views)
2014-11-07 19:57:14

TehJavaDev (67 views)
2014-11-03 22:04:50

BurntPizza (65 views)
2014-11-03 18:54:52

moogie (80 views)
2014-11-03 06:22:04

CopyableCougar4 (80 views)
2014-11-01 23:36:41
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!