aspose file tools*
The moose likes Beginning Java and the fly likes Javaw.................??????????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Javaw.................???????????" Watch "Javaw.................???????????" New topic
Author

Javaw.................???????????

Sadashiv Borkar
Ranch Hand

Joined: Jun 07, 2000
Posts: 49
Hi,
Can anyone tell me what is javaw used for?.
What is difference between the javaw and java.Both are JVM's so which JVM should i use when..
Thanx In Advance
bye
Sada
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Have you tried it?
The "Window" (w) version will start a Java application without leaving open the COMMAND window that you used to start the application in the first place.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Sadashiv Borkar
Ranch Hand

Joined: Jun 07, 2000
Posts: 49
Hi Tony,
I have tried it it gave me the same results as said by you but is that the only difference betweem java and javaw.......
byee
sada
Sadashiv Borkar
Ranch Hand

Joined: Jun 07, 2000
Posts: 49
Hi Tony,
I have tried Both and Agree that whatever you have said.But Is that the only difference Between Both Of Them....
bye
Sada
Siddharth Mehrotra
Ranch Hand

Joined: Aug 21, 2001
Posts: 185
what do you mean by "Window" (w) version comand...
can u explain that...
and about javaw and java..
can u give some more light on it


SCJP, SCJD.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
The (Window)w version is javaw.exe. It allows the command window to be closed without killing the JVM.
If you invoke java.exe and try to close the command window, the entire JVM (including your app) is killed.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
The javaw command is identical to java, except that with javaw there is no associated console window. Use javaw when you don't want a command prompt window to appear. The javaw launcher will, however, display a dialog box with error information if a launch fails for some reason.

You can find the above here.
-Barry


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
I tried going to the folder containing java.exe and javaw.exe and tried to give the command java.exe and javaw.exe.I couldnt find any difference?Can anyone help me out in seeing the difference between the two
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3742
    
  16
Originally posted by Renu Radhika:
I tried going to the folder containing java.exe and javaw.exe and tried to give the command java.exe and javaw.exe.I couldnt find any difference?Can anyone help me out in seeing the difference between the two


Which part of the quote in Barry Gaunt's post did you not understand ?


Joanne
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
"The "Window" (w) version will start a Java application without leaving open the COMMAND window that you used to start the application in the first place. "
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javaw.................???????????