The "Canvas3D constructed with a null GraphicsConfiguration" is a common
"error" that many tolerate as not an issue.  It occurs when you create
your Canvas3D using:
  new Canvas3D();

If you use:
  GraphicsDevice dev =
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
  GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
  GraphicsConfiguration config =
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getBestConfiguration(template);
  canvas3d = new Canvas3D(config);

you shouldn't have this issue. (this has nothing to do with Linux)

- John Wright
Starfire Research

cs wrote:
> Hi,all. My system is linux(redhat 9), j2sdk1.4.2_05,
> java3d-1_3_2-linux-i586, and Video card is NVIDIA GeForece 2 GTS
> (generic). when I run any simple j3d application or applet(demo in
> java3d), it gives me the error message as following:
> ************************************************************************
>  *** ERROR: Canvas3D constructed with a null GraphicsConfiguration
> *** This will cause a NullPointerException in a subsequent release
> ************************************************************************
>  java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration
>  at javax.media.j3d.Canvas3D.<init>(Unknown Source) at
> javax.media.j3d.Canvas3D.<init>(Unknown Source) at
> MyBoxTest1.init(MyBoxTest1.java:45) at
> com.sun.j3d.utils.applet.MainFrame.run(Unknown Source) at
> java.lang.Thread.run(Thread.java:534)
>
> The same java3d application or applet can run in Windows system. And
> java applet can run in linux system. I find that the color of the
> checking box "3D Accelerate" is gray in the display information of my
> linux system, and I cannot check it. I change to another card(ATI
> Radeon 9000) and it comes to the same wrong message. So that wrong is
> related to this? That means i should install the new driver for the
> NVIDIA card? I'm a newbie in linux. anyone met this case?
>
> Thanks,
>
> Martin
>
>
> ===========================================================================
>  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".
>

===========================================================================
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