Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (788)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (860)
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  
  Shipping a Gradle project  (Read 1061 times)
0 Members and 1 Guest are viewing this topic.
Offline fenaryh
« Posted 2018-12-07 19:29:35 »

Hi, all,

it's a very simple question, but I really can't finding the answer.

How can I "export" my game to send to other people to play? In other words, create an executable game.

I'm using LIGBDX and Gradle.

ps - the people shall not have Gradle installed.
Offline VaTTeRGeR
« Reply #1 - Posted 2018-12-07 22:13:20 »

http://lmgtfy.com/?q=libgdx+gradle+export+jar

Literally the first and second link are the solution (the libgdx wiki entry)
Your special key word of the day is packaging Cheesy
Offline fenaryh
« Reply #2 - Posted 2018-12-08 03:08:01 »

Thank you, man!

But the word that I was searching is actually "deploy" lol

For record: need the gradlew to work. The gradle only was not working!

Thanks again!

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline VaTTeRGeR
« Reply #3 - Posted 2018-12-08 09:32:20 »

Gradle calls it packaging is what i was playing at: https://github.com/libgdx/libgdx/wiki/Gradle-on-the-Commandline#packaging-the-project
Offline fenaryh
« Reply #4 - Posted 2018-12-19 01:50:15 »

Hi,  VaTTeRGeR,

me again! I don't know what`s happening, but from the desktop, the fat jar don't runs.

But if I create a simple folder in the desktop and move the fat jar to there, THEN, the game runs.

Am I missing something about Java and Windows Desktop (win 10)?
Offline SugarBlood

Senior Devvie


Medals: 9
Projects: 5



« Reply #5 - Posted 2018-12-21 19:12:24 »

Hi, fenaryh Smiley Recently I had the same problem, and maybe its exact same problem as yours. Try to run your jar with cmd, i mean command: java -jar yourjarname.jar, and see what returns, I got an error that says - gdx libraries wasn't found, if I got it right. I wasn't able to find an answer, so i gave up, and exported my jar with Eclipse. Still would be cool to find out what I did wrong with gradle.
Offline fenaryh
« Reply #6 - Posted 2018-12-22 17:21:04 »

Hi, sugarblood! =]

I solved using the gradlew. Only need to export this way

1  
gradlew desktop::dist


Just type this in the command line and it`s solved! =]
Offline SugarBlood

Senior Devvie


Medals: 9
Projects: 5



« Reply #7 - Posted 2018-12-22 18:13:06 »

Hi, sugarblood! =]

I solved using the gradlew. Only need to export this way

1  
gradlew desktop::dist


Just type this in the command line and it`s solved! =]

But this is how I was doing it, and I thought you got your jar like this at the first place. Well I'll try it next time, looks like I just not checked everything careful enougth. Undecided Roll Eyes   
Pages: [1]
  ignore  |  Print  
 
 

 
hadezbladez (2108 views)
2018-11-16 13:46:03

hadezbladez (804 views)
2018-11-16 13:41:33

hadezbladez (2080 views)
2018-11-16 13:35:35

hadezbladez (414 views)
2018-11-16 13:32:03

EgonOlsen (3447 views)
2018-06-10 19:43:48

EgonOlsen (3677 views)
2018-06-10 19:43:44

EgonOlsen (2271 views)
2018-06-10 19:43:20

DesertCoockie (2993 views)
2018-05-13 18:23:11

nelsongames (3070 views)
2018-04-24 18:15:36

nelsongames (3802 views)
2018-04-24 18:14:32
Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20
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!