#Why built JAR file doesnt work?

23 messages · Page 1 of 1 (latest)

marble breach
#

.

mental forumBOT
#

This post has been reserved for your question.

Hey @marble breach! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

marble breach
#

Why we cant execute the built JAR?

#

If we built it manually by IDE

upper tusk
#

What happens?

#

How are you running it?

marble breach
#

Manual build

#

And why we cant open it

upper tusk
#

Well how are you opening the JAR?

marble breach
#

Double click

upper tusk
#

Can you try running it from the command line with java -jar?

#

btw that's the wrong user

marble breach
#

Is it executing main method

upper tusk
#

that as well

#

But I'm mainly interested in what happens when running it with java -jar

marble breach
#

You mean from CMD?

upper tusk
#

yes

marble breach
# upper tusk yes

I'll try when i get home. Yesterday i tried it wih another program but it didnt work when i type java or javac to console. It says there is no such thing. Is it because i dont have JDK installed?

upper tusk
#

I'd need to see the output to see what the issue is

#

Try running it with java -jar yourjar.jar where yourjar.jar is your JAR file