R
reexana
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
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