I don't think that a static initialization will work. what about "new URLResource(...." ?
You are correct, that worked. It's obvious that I should have tried that but it was the same code as the first program. I was a little too stubborn I guess. Thanks for the response!