Hi!

This is not a problem of ncsa's portfolio. Because the loader.load method
throws an exception (see at the API-Docu of this method), you have to put
your call in a try/catch-construction:

try {
        Scene model2 = loader.load("TODD1.DEM");
} catch (FileNotFoundException fnfe) {
        System.err.println(fnfe.getMessage());
}

Hope this helps,
Christian

----------------------------------------------------------------------------
-------------
Dipl.Ing. Christian Liska
Austrian Research Centers Seibersdorf
Dept. Information Technology
Authorized Java Center
mailto:[EMAIL PROTECTED]
http://www.arcs.ac.at/ajc
----------------------------------------------------------------------------
-------------

>Hi,
>
>        I am trying to load the dem file using ncsa's portfolio but I get
>the following error below:
>
>I am using current version of the portfolio, jdk121, and java 3d 1.1.2.
>Does anyone have any idea?/
>
>        thanks.
>        Vineet Gupta
>
>
>E:\java3d\july99>javac Terrain.java
>Terrain.java:137: Class Scene not found.
>Scene model2 = loader.load("TODD1.DEM");
>^
>Terrain.java:137: Exception java.io.FileNotFoundException must be caught,
>or it
>must be declared in the throws clause of this method.
>Scene model2 = loader.load("TODD1.DEM");
>                          ^
>2 errors

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to