java - Running a .jar file in a command prompt from double click -


i'll start of saying im on windows 7.

i have created .jar file executes fine command line using - java -jar myjar.jar approach

but i'm after able double click on jar file , open command prompt window , run in command prompt if i've typed java -jar myjar.jar line.

when double click jar file think running because visual part of java appearing, there no command prompt window showing console output.

after looking around i've come across people saying javaw jar files associated don't have console , need associate jar files java.exe instead of javaw.exe. i've tried , didn't seem work.

can help? step step nice.

this imho not possible. open console application itself, os-dependent. if need console open, have run application do.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -