Forums Register Login

javaw

+Pie Number of slices to send: Send
whats "javaw.exe" for ?
Does it get installed automatically with jre ? What is it used for ?
+Pie Number of slices to send: Send
It's the same as java.exe, but it doesn't open stdin/stdout to a console. It's useful for running GUI apps. It's the preferred program for running clickable JAR files.
+Pie Number of slices to send: Send
I'd like to think the "w" stands for "windowed", because as Ernest said it should be used for GUI apps - application with a window.
+Pie Number of slices to send: Send
 

Ernest Friedman-Hill wrote:It's the preferred program for running clickable JAR files.


Hmm... I'm sorry, but in this case, what's the difference between java -jar and javaw?

Hug.
+Pie Number of slices to send: Send
java -jar will open a DOS window. javaw won't.
+Pie Number of slices to send: Send
So if I want to run a byte code using javaw , I can use "javaw bytecode" instead of "java bytecode" , right ?

In what situation shall I opt to use javaw and what is the advantage of using javaw over java ?
+Pie Number of slices to send: Send
 

jignesh soni wrote:
In what situation shall I opt to use javaw and what is the advantage of using javaw over java ?



I've explained it twice now. I think the only way you'll understand is to try it yourself. Set up your machine to run jars by double-clicking to use java.exe, then change it to use javaw.exe. You should see the obvious difference: with java.exe, a console window appears, but with javaw.exe, it does not.
+Pie Number of slices to send: Send
Ernest,

Thanks for your answer

Hug.
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1387 times.
Similar Threads
Introduction Agencies
WA #2 ..... word association
everyone please read this
Unregistered?
World Market
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:55:37.