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?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.