Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
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  
  How to release my app?  (Read 1508 times)
0 Members and 1 Guest are viewing this topic.
Offline Luminem

Senior Newbie





« Posted 2013-01-04 19:40:03 »

Hey guys, i've finished my little game, now how can i make a "installer" to distribute the game? And a "shortcut" to open it like "minecraft/revenge of the titan" Grin
Thank you

Simply Perfect
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 117
Projects: 4
Exp: 3 years



« Reply #1 - Posted 2013-01-04 19:41:24 »

Uh, .jar? Or convert it to .exe. Unless your game is really big I see no need for an installer.
Offline deepthought
« Reply #2 - Posted 2013-01-04 19:45:10 »

Jar file and simple c program or shell script to invoke the jvm.

jocks rule the highschools. GEEKS RULE THE WORLD MWAHAHAHA!!
captain failure test game
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Luminem

Senior Newbie





« Reply #3 - Posted 2013-01-04 20:32:29 »

My game is not big but without installer is "too" tatty  Tongue

So how can i do the "program" or shell script :S? Cheesy

Simply Perfect
Offline deepthought
« Reply #4 - Posted 2013-01-04 20:40:48 »

Distribute as a zip containing your jar, resources, and script.

The script just has to call

1  
java(w) -jar  jarname  -Djava.library.path. any dependencies 

jocks rule the highschools. GEEKS RULE THE WORLD MWAHAHAHA!!
captain failure test game
Offline Luminem

Senior Newbie





« Reply #5 - Posted 2013-01-04 23:02:16 »

Excuse me :S, how the script? What kind of script(.sh,.bat)? How can i do for window and linux? I don't know very much about that

Simply Perfect
Offline deepthought
« Reply #6 - Posted 2013-01-04 23:05:08 »

on windows just put what i have above in gamename.bat. on linux it goes in a .sh file. on linux you will need to add "#!/bin/sh" without quotes to the file. you may also need to chmod it to be executable.

jocks rule the highschools. GEEKS RULE THE WORLD MWAHAHAHA!!
captain failure test game
Offline Luminem

Senior Newbie





« Reply #7 - Posted 2013-01-04 23:14:57 »

Thank Cheesy and the last question, could you explain to me what's this
1  
-Djava.library.path. any dependencies 

what does it do?

Sorry for too question, it's the first time i release a java app :S

Simply Perfect
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #8 - Posted 2013-01-05 07:06:04 »

Thank Cheesy and the last question, could you explain to me what's this
1  
-Djava.library.path. any dependencies 

what does it do?

Sorry for too question, it's the first time i release a java app :S
That's only if you have natives you want the JVM to load, like for LWJGL for example. If not, then ignore and do not add it Smiley

Offline ReBirth
« Reply #9 - Posted 2013-01-05 07:14:49 »

lol no one mention Mac? Tongue

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Phased
« Reply #10 - Posted 2013-01-05 07:48:47 »

You could create a launcher, which the user will download.

The launcher will then download the actual .jar and any files (you could pack it into a zip for download, and just save all files exactly in the right position in the zip, probably the easiest way) and put it in the right path. e.g. when you press play, the launcher will check the appropriate file path for the game, if it does not exist, download the files then launch the game.

The launcher then can have a update check in it, compare the current version to a text file and check to see if it needs updating, if it needs updating, download the file. If not, just start the game instantly.
Offline PeterNicholson

Senior Member


Medals: 3
Projects: 1



« Reply #11 - Posted 2013-01-05 08:13:34 »

Check out JarSplice. Here are some tutorials, that might help you.  Pointing

Subscribe to me on YouTube: http://youtube.com/javaprogrammerguy
Offline Luminem

Senior Newbie





« Reply #12 - Posted 2013-01-05 12:48:11 »

You could create a launcher, which the user will download.

The problem is i don't know how to make it :/

Simply Perfect
Offline ReBirth
« Reply #13 - Posted 2013-01-05 13:03:05 »

There is no need of launcher if your game is relatively small/rarely updating.

Offline Luminem

Senior Newbie





« Reply #14 - Posted 2013-01-05 15:16:24 »

:S Okay Cheesy then a normal installer without updating

Simply Perfect
Offline Luminem

Senior Newbie





« Reply #15 - Posted 2013-01-06 13:44:15 »

:S GUYS!! Sad, how can i call the "java jar" with the script... So it's works perfectly but  don't know how to load jinput too :S

Simply Perfect
Offline SHC
« Reply #16 - Posted 2013-01-06 13:54:40 »

First check the licences of your dependencies so that you can merge them ( No Licence will object you I think ). You can make it an exe for windows platform ( See http://transfer2pc.weebly.com/1/post/2011/10/jar2exe-converter-11-gui.html My jar to exe converter ) For linux, pack it in a zip along with a script (.sh)

1  
java -jar merged_jar.jar


Or you can package them into deb or rpm packages.

Offline Luminem

Senior Newbie





« Reply #17 - Posted 2013-01-06 14:13:41 »

but how can i "use" my jar with jinput. the error is
INFO: Failed to load library: no jinput-linux in java.library.path

Simply Perfect
Offline SHC
« Reply #18 - Posted 2013-01-06 14:28:12 »

Did you merge the jar?

If so make the code like this

1  
java -jar merged_jar.jar -Djava.library.path=jinput-linux.so

Offline Luminem

Senior Newbie





« Reply #19 - Posted 2013-01-06 16:36:54 »

how can i merge the jar?
how can i activate jinput for win & mac too?

Simply Perfect
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.

xsi3rr4x (60 views)
2014-04-15 18:08:23

BurntPizza (58 views)
2014-04-15 03:46:01

UprightPath (71 views)
2014-04-14 17:39:50

UprightPath (54 views)
2014-04-14 17:35:47

Porlus (71 views)
2014-04-14 15:48:38

tom_mai78101 (97 views)
2014-04-10 04:04:31

BurntPizza (157 views)
2014-04-08 23:06:04

tom_mai78101 (252 views)
2014-04-05 13:34:39

trollwarrior1 (207 views)
2014-04-04 12:06:45

CJLetsGame (214 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!