How???

Feel free to showcase your own projects!
Post Reply
User avatar
Fox
PERMABANNED
Posts: 36
Joined: 03 May 2012, 17:19

Post » 05 May 2012, 20:12

Hello SYS(StabYourSelf)!

Today I made a program in java and turned it into a .zip , I would like to know how to run it and play the game?.

Thanks in advance.

cheese
PERMABANNED
Posts: 43
Joined: 29 Apr 2012, 15:05

Post » 05 May 2012, 21:11

make a .bat file in the same directory as the .jar file
then in the .bat file type in:

Code: Select all

java -jar NAME.jar
change NAME to the name of your program
this only works for windows

User avatar
Fox
PERMABANNED
Posts: 36
Joined: 03 May 2012, 17:19

Post » 08 May 2012, 16:21

cheese wrote:make a .bat file in the same directory as the .jar file
then in the .bat file type in:

Code: Select all

java -jar NAME.jar
change NAME to the name of your program
this only works for windows
And what do I do next?

User avatar
trosh
Posts: 1594
Joined: 03 Feb 2012, 08:36

Post » 08 May 2012, 19:02

what's in your .zip ? I don't think you have to zip java games, try to run them straight away from your IDE or whatnot.

User avatar
Fox
PERMABANNED
Posts: 36
Joined: 03 May 2012, 17:19

Post » 08 May 2012, 19:19

trosh wrote:what's in your .zip ? I don't think you have to zip java games, try to run them straight away from your IDE or whatnot.
But if I run the program straight away, my computer goes: BOOP! And nothing pops up.

User avatar
trosh
Posts: 1594
Joined: 03 Feb 2012, 08:36

Post » 08 May 2012, 19:29

probably due to the program being a failure. copy it here in

Code: Select all

 tags ?

Post Reply