The Artima Developer Community
Sponsored Link

Java Answers Forum
Exception in thread "main"

3 replies on 1 page. Most recent reply: Mar 8, 2007 3:10 AM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Ntavo Alvinia

Posts: 3
Nickname: ntavo
Registered: Feb, 2007

Exception in thread "main" Posted: Feb 27, 2007 7:46 AM
Reply to this message Reply
Advertisement
Yesterday I performed a format in my computer.. although I have installed everything again when ever I try to run a java 3d programm, even the simpliest I get this message..

Exception in thread "main" java.lang.NullPointerException: Canvas3D: null Graphi
csConfiguration
at javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:95
4)
at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:997)
at Java3Da.<init>(Java3Da.java:14)
at Java3Da.main(Java3Da.java:46)

ofcourse compile finds no errors, and the programm was until yesterday running properly..
Any suggestion?


qwerrr qwerrr

Posts: 1
Nickname: qwerrr
Registered: Feb, 2007

Re: Exception in thread "main" Posted: Feb 27, 2007 9:08 AM
Reply to this message Reply
Do you thint that we all can to read smb.'s thoughts. Full source in studio, please...


------------------------------------------------------------
Здесь могла быть ваша реклама

Ntavo Alvinia

Posts: 3
Nickname: ntavo
Registered: Feb, 2007

Re: Exception in thread "main" Posted: Feb 28, 2007 3:46 AM
Reply to this message Reply
It's ok.. i had updated my jdk1-5-09 version to jdk1-6 which apparently created the problems...

Thnx anyway...

Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: Exception in thread "main" Posted: Mar 8, 2007 3:10 AM
Reply to this message Reply
Java3D was installed in the Java 1.5 folder.
If you upgrade to Java 1.6, there's no installation of Java3D in the 1.6 folder, so it can't find it.

Just re-install Java3D, it will find the new Java-Version and install the files in the right folder.
Do so with all the other extensions you installed (Quicktime4Java ...) or just copy the folder containing the extensions from the 1.5 folder into the 1.6 folder

Flat View: This topic has 3 replies on 1 page
Topic: Exception in thread "main" Previous Topic   Next Topic Topic: new to connection

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use