Nicolas François wrote:
Michel, Matthew, Bob, can you confirm that this bug still exists?
Can you try the above example? And if it works, can you also provide an
application which fails?

Your example works fine when loading the class directly from the filesystem:

$ jamvm -Djava.util.logging.config.file=$PWD/test-logging.properties Test
Mar 11, 2007 9:23:15 PM Test main
WARNING: WARNING log
Mar 11, 2007 9:23:16 PM Test main
SEVERE: SEVERE log

However, If I try to run the example from a jar file, a NullPointerException 
occurs:

$ jar cf test.jar Test.class
$ jamvm -Djava.util.logging.config.file=$PWD/test-logging.properties \
  -cp test.jar Test
Exception occurred while VM initialising.
java/lang/NullPointerException

I get the same error when trying to run other applications which are archived in a jar-file (e.g. jWAP or the JFC demos from the Sun JDK). Seems like there's a general problem with handling of jar files...

Your classpath's version could also be interesting.
ii  classpath      0.91-3         clean room standard Java libraries
ii  jamvm          1.4.4-1        virtual machine which conforms to ...

Cheers,

Michel

Reply via email to