aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Error while running an example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Error while running an example" Watch "Error while running an example" New topic
Author

Error while running an example

Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
hello all,

I have just used to sample code, HelloUniverse.java

The applet display but gives an error message as follows.

Can anyone help me to rectify this error.

Thanks in advance.



Best regards,<br /> <br />vanchin
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
Not knowing what HelloUniverse, GraphicsConfiguration or Canvas3D do, this is a bit tricky to answer.

Canvas3D constructed with a null GraphicsConfiguration


If this is true, and is part of your code, you might want to correct it (i.e., construct a Canvas3D with a non-null GraphicsConfiguration).


Ping & DNS - my free Android networking tools app
Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
Hi,

Sorry for not putting the code.
This code snippet is taken from the tutorials for Java3D.

How should i rectify the error?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
Canvas3D c = new Canvas3D(null);


Do exactly what the error message suggests: don't create a Canvas3D with a null GraphicsConfiguration (I'm assuming the parameter is a GraphicsConfiguration).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error while running an example