0

Hi,

I have a jar which cannot be accessed by double clicking on it(I don't know why) but can be opened through the terminal. I just have to put

java -jar "myJar.jar"

And all the fancy things on the consoles appears then your application appears. I'm planning to release my jar so my friends(Who are not programmers) can use it. My jar is a game by the way. By looking at the console:

Mon Nov 05 17:01:17 SGT 2012 INFO:Slick Build #274
Mon Nov 05 17:01:17 SGT 2012 INFO:LWJGL Version: 2.8.4
Mon Nov 05 17:01:17 SGT 2012 INFO:OriginalDisplayMode: 1920 x 1080 x 32 @0Hz
Mon Nov 05 17:01:17 SGT 2012 INFO:TargetDisplayMode: 1500 x 1000 x 0 @0Hz
Mon Nov 05 17:01:19 SGT 2012 INFO:Starting display 1500x1000
Mon Nov 05 17:01:19 SGT 2012 INFO:Use Java PNG Loader = true
Mon Nov 05 17:01:19 SGT 2012 INFO:Controllers not available

I was thinking that JDK is required. Is JDK or SDK required in order to run my jar?

2
Contributors
1
Reply
2
Views
4 Years
Discussion Span
Last Post by stultuske
0

no. in order to run it, you need to have the JRE installed. if you want to run the jar by clicking on it, set the environment settings of your os correctly.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.