Sorry, I'm actually building and testing
j3d-examples in Eclipse 3.5.1 IDE, under WindowsXP.
Resources is actually defined as the attached file. In fact, this Resource.java file is as simple as
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| package org.jdesktop.j3d.examples;
import java.net.URL;
public class Resources { private Resources() { }
public static URL getResource(String filename) { URL url = Resources.class.getResource(filename); return url; } } |
I tacked into the source, it seems the function
1
| public java.net.URL getResource(String name) |
in class
can't find the resource files, which makes url in
1
| URL url = Resources.class.getResource(filename); |
always be null.
Can you please help?
Cheers
JIA Pei