0

how can i associate jar files with java.exe not javaw.exe in window 7,since if jar file is associated to javaw.exe,then console is not displayed.
thanx

2
Contributors
9
Replies
11
Views
6 Years
Discussion Span
Last Post by JamesCherrill
0

i apreciate ur response
i tried this and associate it to java.exe not javaw.exe,but it is not working.
i don't know why?it is opening for 1 second geving me message program exit and closing rapidly.
thanx

0

Yes, it does thyat if there is a problem starting the program. It's very silly. Open a command window in the same dir and type the command. That way you can see the error message.

0

thanx for reply,
when i associate jar with javaw.exe,it is opening normally,but when i associate it with java.exe,it is opening only 1 second,and i am not seeing what is the message exactly then closing rapidly.i don't know what is the problem

0

you can read my previous post again,i don't have problem when starting the program,
this occurs only when associating with java.exe,it works and opens normally when associated with javaw.exe
thanx

0

and what happened? And why are you telling me?

That's nothing like what I suggested. You need to type
java -jar myjar.jar
where myjar.jar should be the name of your jar file
This is the same as associating .jars with java, but the window stays open for you to see the messages.

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.