hi all, so Im very new to Java (all programming) 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 and just doing it all in notepad++.... thanks