Is the file in the directory
where the class with your attached source code is running?
If not you must specify the relative path...
Regards,
Guglielmo
On Mon, 30 May 2005 08:24:26 -0700, Saeed Ansari wrote
> Hi
all,
> I want to load an obj file to my
scene.
>
> private URL filename
Hi all,
I want to load an obj file to my scene.
private URL filename = null;
filename =(getClass().getResource("galleon.obj"));
but it gives nullPointerExeption. I have located the obj file in project folder.
What is the problem ?
Regards,
Saeed
Do You Yahoo!? Yahoo! Small