Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: 3D Display Error

Hi Tan Toh Fei,

> I try to run the tutorial programs in windows NT 4.0 and I have a problem to
> execute the 3D graph. (2D is alright). what shall be the problem? Thank you.
> 
> Error Message:
> 
> Exception in thread "main" java.lang.NullPointerException
>         at P3_09.main(P3_09.java:98)
> 
> P/S: The OpenGL.DLL file is in proper directory. Do I need DirectX from
> Microsoft to generate the 3D graph?

This is a mystery, because line 98 of P3_09.java is a comment:

    //                           double first2, double last2, lengthY)

and cannot be the location of a NullPointerException.  Such
an Exception would probably not be caused by an incorrect
OpenGL or DirectX installation.  Can you please tell what
line of code is line 98 in your copy of P3_09.java?

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690