participate


New To Java - How to find help about javaw.exe interpreter?
<<   Back to Forum  |   Give us Feedback
This topic has 12 replies on 1 page.
erez2000il
Posts:37
Registered: 6/9/04
How to find help about javaw.exe interpreter?   
Feb 4, 2005 9:10 AM

 
Hi,

I hope that someone here can help me.

I'm trying to find help about Javaw.exe command line and I wasn't able to find any document at sun.com.

basicly I want to understand what does javaw.exe -ojvm do? but I have more questions...

can someone direct me to an official guide at sun.com to all the command line.
or maybe someone can explain how to find this document at sun.com

Thanks.
 
Peter-Lawrey
Posts:6,487
Registered: 5/5/04
Re: How to find help about javaw.exe interpreter?   
Feb 4, 2005 9:16 AM (reply 1 of 12)  (In reply to original post )

 
java.exe and javaw.exe are basically the same.
java.exe opens a console by default whereas javaw assumes you don't want a console because you have a windows program.
So if you don't want a text window to open when you run your java program, run javaw
 
bbritta
Posts:8,810
Registered: 10/4/00
Re: How to find help about javaw.exe interpreter?   
Feb 4, 2005 9:16 AM (reply 2 of 12)  (In reply to original post )

 
AFAIK, the only difference is that javaw.exe doesn't open a console (command prompt)
 
timbell
Posts:158
Registered: 6/11/97
Re: How to find help about javaw.exe interpreter?   
Feb 4, 2005 9:20 AM (reply 3 of 12)  (In reply to original post )

 
Start with the man page for java - the Java application launcher

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html

This reads (in part):
    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.


I can't help you on the "-ojvm". question... there is no documentation for such a flag, and I've never heard of it.
 
erez2000il
Posts:37
Registered: 6/9/04
Re: How to find help about javaw.exe interpreter?   
Feb 4, 2005 9:38 AM (reply 4 of 12)  (In reply to #3 )

 
Thanks - this is exacly what I was looking for!

It is strange that no information available on the -ojvm parameter...
I can see this parameter when I click on run in JDeveloper (oracle IDE).
It uses this parameter to run the java class I wrote...
 
bbritta
Posts:8,810
Registered: 10/4/00
Re: How to find help about javaw.exe interpreter?   
Feb 4, 2005 12:15 PM (reply 5 of 12)  (In reply to #4 )

 
It's a special flag for JDeveloper. I did a google search for you

http://helponline.oracle.com/jdeveloper/help/state/content/vtTopicId./navSetId.jdeveloper/vtTopicFile.jdeveloper%7Cgetting_started%7Cide_rjdevcommandlineoptions%7Ehtml/navId.4/

Sorry about the spaces this forum software puts in for you.
 
duffymo
Posts:27,863
Registered: 2/20/98
Re: How to find help about javaw.exe interpreter?   
Feb 4, 2005 12:44 PM (reply 6 of 12)  (In reply to #5 )

 
Look in your javadocs under tools.

bbritta's solution for ojvm won't be there, but the rest will.

%
 
ChuckBing
Posts:13,470
Registered: 4/7/01
Re: How to find help about javaw.exe interpreter?   
Feb 4, 2005 1:41 PM (reply 7 of 12)  (In reply to #5 )

 
Sorry about the spaces this forum software puts in for you.

Using the code tags prevents that.
 
bbritta
Posts:8,810
Registered: 10/4/00
Re: How to find help about javaw.exe interpreter?   
Feb 4, 2005 1:43 PM (reply 8 of 12)  (In reply to #7 )

 
Sorry about the spaces this forum software puts in
for you.

Using the code tags prevents that.

Thanks!
 
LRMK
Posts:2,177
Registered: 7/5/04
Re: How to find help about javaw.exe interpreter?   
Feb 4, 2005 11:04 PM (reply 9 of 12)  (In reply to #8 )

 
So if you are using javaw.exe where does the Standerd Output (what you print in System.out)and Standerd Error Strem goes
can we redirect them to files
 
jwenting
Posts:9,582
Registered: 4/17/98
Re: How to find help about javaw.exe interpreter?   
Feb 4, 2005 11:30 PM (reply 10 of 12)  (In reply to #9 )

 
it goes nowhere unless you explicitly redirect it to file from the startup command.
 
erez2000il
Posts:37
Registered: 6/9/04
Re: How to find help about javaw.exe interpreter?   
Feb 5, 2005 6:55 AM (reply 11 of 12)  (In reply to #10 )

 
Thanks everyone - you've helped me a lot!
 
Kannanb
Posts:26
Registered: 2/4/05
Re: How to find help about javaw.exe interpreter?   
Feb 11, 2005 5:17 PM (reply 12 of 12)  (In reply to #9 )

 
So if you are using javaw.exe where does the Standerd Output (what you print in System.out)and Standerd Error Strem goes
can we redirect them to files

You could redirect sysout and syerr to streams by using System.setOut(..) and System.setErr() calls.

Thanks,
Kannan
 
This topic has 12 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 26
  • Guests : 122

About Sun forums
  • Sun Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Sun Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums