a little beginner Java help

Post » Sun Oct 10, 2010 10:51 am

ok, so Im very new to Java and Im having a little trouble.

I've put together a little piece of code and I can compile it just fine. But when I go to run the class file I always get this error spit back at me.

Exception in thread "main" java.lang.NoClassDefFoundError:


my google search has shown me that this means that the jdk cant find my class file. I checked my classpath

C:\Program Files\Java\jre1.6.0_06\lib\ext\QTJava.zip;C:\Program Files\Java\jdk1.6.0_23\lib


I also have a separate QTJAVA path, I dont know if I need it becuase its already in my classpath, but I havent touched it.

ok, so I got to the point where I put my .java file in with my jdk lib and when I compiled it it ran.. it didnt function properly but, it ran!

I tried putting my working dir in my classpath but that didnt work.

So can anyone help me figure out why my class files wont run in other directories?

running XP, btw.... thanks
User avatar
Devin Sluis
 
Posts: 3389
Joined: Wed Oct 24, 2007 4:22 am

Post » Sun Oct 10, 2010 10:03 am

You could try asking in the http://www.gamesas.com/index.php?/topic/1166756-unofficial-programming-thread-iii/. That might make it easier to get help. What editor are you using and was it configured correctly?
User avatar
Nany Smith
 
Posts: 3419
Joined: Sat Mar 17, 2007 5:36 pm

Post » Sun Oct 10, 2010 7:01 am

oh, didnt know there is an official thread, my bad.

just using notepad++ and command prompt.
User avatar
Laura Elizabeth
 
Posts: 3454
Joined: Wed Oct 11, 2006 7:34 pm


Return to Othor Games