Specify -Djava.util.logging.config.file using webstart

Hi,

in our application we use the following vm argument to specify which logger class should be used (we use jdk logging):

-Djava.util.logging.config.file="logging.properties"

Based on:

http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html#resources

it is not entirely clear to me if it is possible to specify this logging properties file using webstart (and if so where to locate it). It is not in the list, but is logging considered unsafe?

kind regards,

Christiaan

[540 byte] By [Christiaan_sea] at [2007-10-2 2:05:05]
# 1

For your information I found the NPE problem.

I had this code:

try {

iconHolder = new JLabel( new ImageIcon

( ClassLoader.getSystemClassLoader()

.getResource( "gui/resource/graphics/splash.gif" ) ) );

} catch ( NullPointerExceptione ) {

/*ignored: no picures but the show must go on */

System.out.println( "Exception: " + e );

}

Now I have realized that getSystemClassLoader() dosent work with JWS. So intead I used Splash.class.getClassLoader(). So the code:

iconHolder = new JLabel( new ImageIcon

( Splash.class.getClassLoader.getResource( "gui/resource/graphics/splash.gif" ) ) );

works fine. I have got rid of the NPE. But still I have the problem that JWS dies after it gets a NPE.

Goofiea at 2007-7-15 19:46:30 > top of Java-index,Desktop,Deploying...
# 2
Sorry, wrong thread!
Goofiea at 2007-7-15 19:46:30 > top of Java-index,Desktop,Deploying...