Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

Fail to run Java3D file

Thread view: 
reexana - 22 Aug 2007 15:25 GMT
I copied a source code for a simple Java 3D program from this url
http://www.java2s.com/Code/Java/3D/HelloJava3Dbrendersasinglerotatedcube.htm

When I compiled the program, it displayed no error. However, when I
run the program, it displayed this error :

deps-jar:
compile-single:
run-single:
Exception in thread "main" java.lang.NullPointerException: Canvas3D:
null GraphicsConfiguration
       at
javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:
963)
       at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1006)
       at org.java.HelloJava3Db.<init>(HelloJava3Db.java:58)
       at org.java.HelloJava3Db.main(HelloJava3Db.java:76)
Java Result: 1
BUILD SUCCESSFUL (total time: 14 seconds)

I have already installed Java3D 1.5.1 and copied all the 3 .jar files
in jdk1.6.0_02/jre/lib/ext.
What should I do now?

Any help n suggestion is appreciated.
Thanks

Regards,
Reexana
Andrew Thompson - 22 Aug 2007 16:01 GMT
...
>Exception in thread "main" java.lang.NullPointerException: Canvas3D:
>null GraphicsConfiguration
...
>Any help n suggestion is appreciated.

Suggestions.
- Post to a forum more specific to Java3D, very few
people around here even have it installed, let alone
are well versed in it.
<http://www.google.com/search?q=Java3D+forum>
- Work on your search skills.
When I plug "Canvas3D: null GraphicsConfiguration"
into a common search engine and check the first few
hits, I get to this page..
<http://archives.java.sun.com/cgi-bin/wa?A2=ind0504&L=java3d-interest&P=1610>
Which states, amongst other things..
*** ERROR: Canvas3D constructed with a null GraphicsConfiguration
*** This will cause a NullPointerException in a subsequent release
I am guessing we are at a 'subsequent release'.

Signature

Andrew Thompson
http://www.athompson.info/andrew/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.