logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Farquhar <sc...@atlassian.com>
Subject Re: Getting a good user experience on Windows?
Date Sat, 05 Jan 2002 07:26:11 GMT
If you are dealing with users, and across platforms, you may want to use 
java webstart (http://java.sun.com/products/javawebstart/).

It allows for GUI starting of programs (but won't help with any of your 

Also - javaw starts programs in the background, whilst java starts in 
the foreground.

Good luck with your project.


Bob Jacobsen wrote:

> Thanks for the quick reply!
> At 4:53 PM +1100 1/5/02, Scott Farquhar wrote:
>> a.  This occurs from the default windows installation running jar
>> files with "javaw -jar xxx.jar".  You wish to change this to be
>> "java -jar xxx.jar".
>> This is a registry setting (from memory), so this would not be an
>> easy fix for your users.
>> You could make a batch file (".bat") or command file (".cmd") to
>> do a windows only startup if you wished.
>> Another option is to use chainsaw or
>> Lumbermill (http://jakarta.apache.org/log4j/docs/download.html) to
>> view log files (ie log to a socket).  Or you can use a file appender
>> and just tail the log file somewhere?
> Thanks for the pointers; I didn't understand the difference between the 
> two methods of starting e.g. java/javaw, but with that clue I think I 
> can track it down.  A command file sounds like the right solution then.
>> b. Which version of log4j are you using?  In log4j alpha 5, and 1.1.3, 
>> this is the line that gets the line separator:
>> (Layout.java)
>>   public final static String LINE_SEP = 
>> System.getProperty("line.separator");
>> So the line separator should be correct for your system.
> Another great clue!  On the machines where people are complaining, that 
> is just returning the single linefeed!  That's probably due to a busted 
> Java install, which seems depressingly common on user machines.  I can 
> probably track that down...
>> What project are you working on?
> Its a program for model railroads: http://sourceforge.net/projects/jmri/ 
> and http://jmri.sourceforge.net/   It makes it (somewhat) easier for 
> hobbyists to automate the signals, etc, on a model railroad.  Having a 
> powerful logging system like Log4J helps, because these people really 
> don't want to dig in with a debugger.  Following a trace-like output 
> from a log is much more understandable to them.
> Thanks again for the help, I'll post a summary when I get it figured out.
> Bob

Scott Farquhar :: scott@atlassian.com

Atlassian :: http://www.atlassian.com
      Supporting YOUR J2EE World

To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

View raw message