I have the following test program I pulled from
http://javaalmanac.com/egs/java.util.logging/BasicLogging.html

It works fine on the PC, put when I run it on the iSeries (V5R1, JVM
1.4.2) I get " Java program completed with exit code 1".  If I run it in
QSH it goes for a bit then returns, but displays nothing. If I run it
with -verbose, I get pages of classes loading, the last being security,
but still no program output.  My session JOBLOGs don't have anything in
them.

Do I have to do something with a SecurityManager?

Any ideas?

QSH:
Java -Djava.version=1.4
     -Djava.util.logging.config.file=Log.properties 
     -jar LogTest.jar

Source:

import java.util.logging.*;

public class LogTest {

    public static void main(String[] args) {
                
        System.out.println("Entered Program");
          Logger logger = Logger.getLogger("LogTest");
          System.out.println("Got Logger");

          System.out.println("Starting to log messages"); 
// Log a few message at different severity levels
        logger.severe("my severe message");
        logger.warning("my warning message");
        logger.info("my info message");
        logger.config("my config message");
        logger.fine("my fine message");
        logger.finer("my finer message");
        logger.finest("my finest message");
          System.out.println("Program exiting");
        }
}




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.