SRL Archive - General

Compiling Java files into a runnable Jar file?


Sin

2013-07-01 17:35:34

I've done this:

However when I run the resulting JAR file, nothing happens. I've tested it on my Windows 8 Computer as well as my Windows 7 Laptop.
Any help will be much appreciated.

rj

2013-07-01 17:36:42

Sec, I know how to do this with eclipse, gotta get on my computer that has it

Sin

2013-07-01 17:43:24

Okay gogogo!

Brandon

2013-07-01 17:47:48

Oh god.. another eclipse user ;) Why the bloated/confusing IDE?

Uhh you can just command line it. If your Jar doesn't have a manifest embedded, it won't run of course. When I used eclipse, I just right clicked the project, press export chose jar and spam clicked next. Works lol.

rj

2013-07-01 17:51:32

From: Sin
Okay gogogo!


Yea uhh.. I just tried it and the same thing is happening to me… awkward

Kasi

2013-07-01 18:11:31

Run it commandline with admin. tell me what happens.

Sin

2013-07-01 19:48:35

From: Brandon
Oh god.. another eclipse user ;) Why the bloated/confusing IDE?

Uhh you can just command line it. If your Jar doesn't have a manifest embedded, it won't run of course. When I used eclipse, I just right clicked the project, press export chose jar and spam clicked next. Works lol.

I right clicked and viewed the archive and it did have a manifest in there.
And idk, Eclipse just stuck with me from the RSBuddy days :D

From: Kasi
Run it commandline with admin. tell me what happens.

How do :x

Brandon

2013-07-01 21:58:54

From: Sin
I right clicked and viewed the archive and it did have a manifest in there.
And idk, Eclipse just stuck with me from the RSBuddy days :D


How do :x




Open CMD and type this:

java -jar "C:/Users/Sin/SomeJarFile.jar"


Change the above to the path of your Jar. Keep the quotes. What does it print?

KandyTaler

2013-09-09 05:47:16

I just right clicked the project.