Basic doubt

Stupid me for asking this basic question. Please tell me the difference between java and javaw
[101 byte] By [ysrpa] at [2007-11-26 23:49:10]
# 1
http://forum.java.sun.com/thread.jspa?threadID=5148999
EvilBroa at 2007-7-11 15:25:25 > top of Java-index,Java Essentials,New To Java...
# 2
its the same thing.. just the difference is that when u use the javaw you don't get the comand prompt window.. thats it..
Bairama at 2007-7-11 15:25:25 > top of Java-index,Java Essentials,New To Java...
# 3

Your link says following

>javaw doesn't show a console window associated with it... So if you're running >something and you don't want the command window, you'd use javaw instead >of java...

Is it that just to avoid a console window javaw.exe was introduced. Or is there anything much more differences between java and javaw

ysrpa at 2007-7-11 15:25:25 > top of Java-index,Java Essentials,New To Java...
# 4

"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."

?-- From the java.exe documentation http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html

pbrockway2a at 2007-7-11 15:25:25 > top of Java-index,Java Essentials,New To Java...
# 5

> "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."

>

>-- From the java.exe documentation

> http://java.sun.com/javase/6/docs/technotes/tools/wind

> ows/java.html

Ok. I understood. Please tell me is it possible to get more error details if lauch fails. I asked because, i have application that simply displays error as "Could not find main class. Program will exit". This error when used javaw command. And i also tried using java command and i get different error. This is where i am confused

ysrpa at 2007-7-11 15:25:25 > top of Java-index,Java Essentials,New To Java...
# 6

> Ok. I understood. Please tell me is it possible to

> get more error details if lauch fails. I asked

> because, i have application that simply displays

> error as "Could not find main class. Program will

> exit". This error when used javaw command.

>And i also

> tried using java command and i get different error.

> This is where i am confused

Will you plz post the detailed error messages you are getting?

diptaPBa at 2007-7-11 15:25:25 > top of Java-index,Java Essentials,New To Java...
# 7

I would try java.exe rather than javaw.exe, so The window doesn't disappear. (And

from the command line rather than double clicking.)

Post the command you are using and the message that results. Copy, paste and

post the actual command and message. If you are executing a .jar file, post its

manifest.

pbrockway2a at 2007-7-11 15:25:25 > top of Java-index,Java Essentials,New To Java...