Where does System.out go on W2K?

I have built an executable jar file, which writes to System.out
On Solaris, I can run either of:
     java -jar foo.jar
     foo.jar
and see the output in either case. But on W2K,
I can see the output only if I run
     java -jar foo.jar
If try
     foo.jar
I see nothing. Is there a way to get output sent to the cmd
window when invoking using the second syntax on W2K?

Under W2K you use the automatic file extension execution.
This is associated with javaw.
Javaw starts java in a extra process, that is NOT associated with the starting CMD.
To solve this problem you have to exchange the association of the .jar from javaw to java in the Registry.
Solution (Sorry, I only know the names in German):
Open Explorer.
GoTo "Extras->Ordneroptionen..."
Tab "Dateityp"
Select "Neu"
Enter "JAR"
Select "Ok"
Select "Erweitert"
Select "Neu..."
Enter by "Vorgang" = "Open"
Enter by "Anwendung f�r diesen Vorgang" = "<JAVA_HOME>/bin/java -jar %1" (replace JAVA_HOME> with your Java Home directory. e.g. C:\jdk1.3)
Select "Ok"
Select "Ok"
Select "Schlie�en"
Start a new CMD
Now start your .jar with foo.jar
Now you will the the output from System.out

Similar Messages

  • Where does System.out.println go?

    Hi Everyone: I know I've seen this topic before, but I'm still having some trouble. I would like to debug my EJBs, and so I've added some System.out.println statements to them. Where does that go? I've looked at the defaultTrace.trc files in the
    C:\usr\sap\P48\JC00\j2ee\cluster\server0\log
    folder, and haven't found any of the text that I think I am writing. I appreciate any guidance! Ian.

    Hi lan,
    I was facing the same question earlier, and now I think I have figured out one possible answer. Actually, where the System.out.println goes is up to the Server Admin to config. There is a default SYSTEM.OUT log controller ( under location controller side) pre-defined to cater for all System.out.println(). All the System.out.println() output is considered as INFO type log message. However, this default SYSTEM.OUT controller is not assigned with any real log destination, thus, we cannot find the output anywhere.
    If you goes to the log configurator (using Visual Admin), you can locate this SYSTEM.OUT controller , and add in a default (Anonymous) destionation for it . (you need to toggle on the advance edit mode from the top menu , then you can add modify the destination settings of a Controller).
    For Anonymous destionation, the println() output will sure go to the defaultTrace.trc (better view it using Log Viewer, instead of viewing it from the log file ).
    Or , you can define a separate file (e.g. c:\temp\myStd.log ) as the log destination ..
    Last but not the least, you need to set the ForceSingleTraceFile setting from 'YES' to 'NO' , then you can see your "myStd.log".
    To change the ForceSingleTraceFile , go to Visual Admin, J2EE server --> Kernel --> LogManager.
    Hope you find the above useful.

  • Where does System.out output go?!!!

    Hi,
    I was wondering where does the output for System.out and such goes to? To which log file in OAS? I couldn't seems to be able to locate the log file storing this information.
    Any comment will be a great help to me, thxs in advance!
    Jason

    zhicheng,
    Regarding you second question ....
    2. Windows Services
    After installation, there are six windows services
    created: XXXAgent, XXXEMWebsite, XXXProcessManager,
    What doesn the above three means? I have tried to
    stop them manually(is there any order to follow?),
    but many times the XXXEMWebsite service failed to
    stop successfully, then I have to restart my
    computer. What's the matter? XXXEMWebsite is the service for starting/stopping the Enterprise Manager of iAS. This represents the file emctl.bat on your file system.
    XXXProcessManager is the file opmn.bat on your file system. This is used for starting/stopping all your iAS Processes.
    I have stopped all the services of iAS on windows several times without facing any problems. Just one word here, I always used to stop the ProcessManager service at the start and EMWebsite service at the last.
    Try if this helps you too.
    Regards.

  • Where does system out or log statements go in ISA-CRM?

    We have added some system out print and log.error statments in a new java class file.
    Can anybody tell where does these statements go, I mean to which log file. I was hoping defaultTrace.0.log, but could n't find.
    We are using CRM/ISA b2b.
    Thanks in advance.

    Mark,
       Here the steps for session trace:
    1. logon to the XCM administrator
    http://mycompnay.com:50000/b2b/admin/xcm/init.do
    2. Go to General Settings->Customer->b2b->b2bconfig.
    3. In the right side frame select true as the value of the parameter logfiledownload.
    4. open URL http://mycompnay.com:50000/b2b/admin
    5. Click on logging - > session tracing
    6. you will see a partial URL in the next jsp page inside a text field. complete this URL for eg.
    http://mycompnay.com:50000/b2b/b2b/init.do
    7. Click start application. This will bring up the logon page in a separate browser window.
    8. In the previous window click Start Session Tracing.
    This will create two hyperlinks with a long name begining with session appended by the date and session ID.
    9. Move to the new window where logon.jsp was started and execute whatever steps necessary in the B2B application till you execute the code segments containing your log entries.
    10. Come back to the previous window and click on the hyperlink for the logfile under the caption "download"
    This will open the session log file as a zip -> text document and you can search for your log entries there.
    Thx,
    Bharat.

  • Where does System.out.println("") send info?

    Under normal java execution it goes to the java console... where does it go when running a servlet under Tomcat on localhost?

    Output is written to the log file whose location is specified in server.xml. The default is the /logs directory under the tomcat root.

  • Where does system output go to in Unix?

    Where does system output go to in a Unix operating system for java?
    System.out.println

    If you've started your process from a shell, then standard out is that shell - since you're asking this question I suppose it's safe to assume you didn't start this process from a shell, in which case stdout might be /dev/null or might be some log file - if you have access to the source then look and see if output has been redirected (per a previous post) if you don't have access to the source ask the folk who wrote the code where the logs are.
    Good Luck
    Lee

  • Which toString() method does System.out.println() call?

    Which toString() method does System.out.println() call? I know that if I did something like System.out.println( new myClass() ) that the toString being called would be that of the myClass class.
    My initial thought about this was that System.out.println() is the equivalent of System.out.println( new Object() ) but I remember trying that in a test program and it gave me a myClass@some_hash_code type of message when adding the new Object() part within the System.out.println().
    Could someone please tell me which toString the System.out.println() statement calls? Also, it would be great if an elaboration follows :).
    Any input woudl be greatly appreciated!
    Thanks in advance!

    s3a wrote:
    My initial thought about this was that System.out.println() is the equivalent of System.out.println( new Object() ) Huh?
    In one method call you pass no parameters in the other method call you pass one parameter. How could you possibly think that they would do the same thing?
    Could someone please tell me which toString the System.out.println() statement calls? Also, it would be great if an elaboration follows :).Yes. The toString of the class of the object which you pass to the method. If that class does not have a toString method it uses the toString method it inherits from the parent class. If the parent class does not have a toString method it uses the one inherited and so and so on all the way up to the Object class.

  • Where Does System.err go?

    If I run my class as an applet I can get error messages using the Java Console. Where do these messages go when I launch it using WebStart?

    Please don't cross post.
              500 internal server error are written to your weblogic.log
              (weblogic/myserver/weblogic.log)
              weblogic.debug.httpd.servlet=true
              will make 500 internal server errors include the stack trace.
              Cheers
              Mark G
              Zak May wrote:
              > i just installed weblogic, and my "user-written servlet" returns HTTP
              > Error 500 -- Internal Server Error.
              >
              > where do i go to look at the java errors?
              >
              > meaning, where does System.err go?
              >
              > thank you very much,
              >
              > zak.
              =====================================================
              Reply to the newsgroup. Don't reply to this mail
              alias. This is used only for answering posts on
              WebLogic Newsgroups.
              =====================================================
              

  • Where does System.err.println("huh?"); goto?

    Hi. Where does the System.err.println("asdfds"); goto for .class files?
    When I try this for .jsp files, I get an output line in the console,
    expected. :> But when I put it in a class I'm using in that jsp file, I
    don't get anything anywhere, or at least no where I found. Can anyone give
    me an idea of what I'm doing wrong here? I know I can use the Logger, but
    this System.err is just for immediate debugging and I want to pull it out as
    soon as I'm done.
    Thanks for any input.

    I found out what I was doing wrong! :< I was copying the .java file instead
    of the .class file. :< Silly. :< Sorry about that.
    "PeterH" <!REMOVEBeforeSending![email protected]> wrote in message
    news:3c9f48a2$[email protected]..
    Hi. Where does the System.err.println("asdfds"); goto for .class files?
    When I try this for .jsp files, I get an output line in the console,
    expected. :> But when I put it in a class I'm using in that jsp file, I
    don't get anything anywhere, or at least no where I found. Can anyonegive
    me an idea of what I'm doing wrong here? I know I can use the Logger, but
    this System.err is just for immediate debugging and I want to pull it outas
    soon as I'm done.
    Thanks for any input.

  • How does System.out.println(). Work inside src.zip file !

    Hello guyz,
    I was just wondering how System.out.println() worked so i opened up the src.zip file and checked the source code. But could not understand it. As written i remember
    "out is an object encapsulated in the System class."
    Thats ok. But i could not understand the code.
        public final static PrintStream out = nullPrintStream();
        private static PrintStream nullPrintStream() throws NullPointerException {
         if (currentTimeMillis() > 0) {
             return null;
         throw new NullPointerException();
        }Also when i ran the DJ Decompiler it decompiled it to this:
    public class One
         public static void main(String args[])
              System.out.println("hello world");
    import java.io.PrintStream;
    public class One
        public One()
        public static void main(String args[])
            System.out.println("hello world");
    }Also, why does it need to import PrintStream ?

    Peter__Lawrey wrote:
    I was just wondering how System.out.println() worked so i opened up the src.zip file and checked the source code.This value is a place holder. This value is changed as soon as enough of the JVM is initialised for printing to work.
    Also, why does it need to import PrintStream ? It doesn't, but it is used in the code so DJ is including it just in case.Sorry,
    But i don't understand at all.

  • What does System.out.println("Hello world!");  when System.console()=null?

    Hello,
    the code below:
    if(System.console()!=null)
                outStream=System.out;
            else
                outStream=new PrintStream(new FileOutputStream(new File("BasicCardReaderManagerLog.log")));
            outStream.println(System.currentTimeMillis());
            outStream.println(System.out.toString());produce the following output, in the BasicCardReaderManagerLog.log file:
    1249991451796
    java.io.PrintStream@190d11
    So it looks like System.out is valid and usable, however, since the application as no console, where I can see the output ???
    Precision: I get this situation in the main function of a console application which I launch using Process.Start. Is there any way to get a console by this mean ?
    Best regards,
    Sebastien

    Based on [http://forums.sun.com/thread.jspa?messageID=10790600#10790600|http://forums.sun.com/thread.jspa?messageID=10790600#10790600]
    import java.util.*;
    public class Java {
         public static void main(String[] arg) throws Exception {
              String[] cmd = { "cmd.exe", "/C", "start", "java.exe" };
              List<String> l = new ArrayList<String>(Arrays.asList(cmd));
              l.addAll(Arrays.asList(arg));
              cmd = l.toArray(cmd);
              Process p = Runtime.getRuntime().exec(cmd);
    }

  • Where is System.out in Tomcat 4.1?

    Hello,
    After getting the connection pool to work with MySQL, I am now trying to set one up for our Sybase system. I keep getting an error though that says: java.sql.SQLException: JZ00L: Login Failed: Examine the SQL Warnings chained to this exception for the reason(s).
    Where are these "Warnings"? Shouldn't they go to the dos window where Tomcat is being run from (i.e. standard System.out)?
    I have checked the log files which Tomcat generates and there is no warnings there. Can someone please tell me where to look?
    Thank You,
    Chris

    Have you tried catching the SQL Exception and dumping the stack trace to System.out? You can then also use getNextException() on the SQL exception and dump that to System.out to get the chained Exception. These should then show up in the Tomcat window.
    I would also try connecting to the sybase system using the ip address, port and login details that you were supplied by the sysadmin using Sybase client utils to check they are correct.

  • Does System.out.println() has a limit ?

    I have this little program that permuates strings
    public class PermutationGenerator
         private void perm(String s, String prefix)
              int length = s.length();
              if (length== 0)
              System.out.println(prefix);
              else
                   for (int i = 0; i < length; i++)
                        perm(s.substring(0, i) + s.substring(i+1, length), prefix + s.charAt(i));
         public void printPermutations(String s)
              perm(s,"");
         public static void main(String[] args)
         new PermutationGenerator().printPermutations("word") ;
    The problem is that when I use a longer string like "longword", I only get 299 different permutations printed. Even if I use an "evenlongerword", I will get 299 permutations. Is this because of java? Because I can't see any errors in my code.

    You probably need to change your command prompt
    screen buffer size. Sounds like you have the height
    set to 300 lines. You can also redirect your output
    to a file to see everything.Very well spotted! The voice of experience!

  • Where does system preferences reside?

    Hi there,
    I am trying to locate the actual coding of system preferences. Does anybody know where it is? I have looked under system and library but not able to find it.
    thanks for your help
    m

    I assume you mean the location of the preference pane files. I'm not sure what you mean by "coding." If you're looking for system preferences and where they're stored, the answer depends on what preference you're looking for. Most can be found in your user library: /Users/YOURUSERNAME/Library/Preferences
    The panes themselves are located in:
    Macintosh HD/System/Library/PreferencePanes
    You may also have user-specific preference panes installed. Those reside in: /Users/YOURUSERNAME/Library/PreferencePanes

  • Where does system update keep downloaded files?

    hey guys. i was prompted to download the 10.5.3 update package in my system updates. however when i rebooted the computer to commence the upgrade, the progress bar doesn't budge. i've left it on for half a day, so im thinking i got a corrupt download. so how do i get rid of the suspect 10.5.3 patch so i can start out clean again?

    Hi Maos,
    You'll find the Software Update's temporary downloads in Mac HD > Library > Updates
    Cheers,
    Jason

Maybe you are looking for

  • Is there a way to view an ENTIRE event?

    In the old iCal when you selected an event it was displayed in the right side panel. The new iCal doesn't do that and when I double click to see the event the new window only shows the first 4 lines of the event. I use iCal to save the info for the j

  • Web dynpro for abap how to create a customize search help in alv column

       hi:       Web dynpro for abap how to create a customize search help in alv column and put search help value into alv column?       Are there specific examples ?       thanks!!

  • Nilvce dll on 64 bit OS ?? (in english)

    The same message in english. Hi, I develop, under LabVIEW, two applications in two different projects. I build the executable of each application in his respective project. This two executables share data via shared variables in "single process" on "

  • SimplePass

    SimplePass makes me want to smash this computer into little pieces ... it pops up every 2 freakin seconds when I type and the computer was purchased to replace my last work computer which was also an HP ... I am so unimpressed with this one ...... I

  • Can I copy between systems with different R/3 releases/add-ons?

    hi,all help me!