My book is teaching me about packages, I've created a simple one with only two class files in it and their corresponding java files. The package is called org.cadenhead.ecommerce so the full thing for my directory is C:\java\org\cadenhead\ecommerce and I've got C:\java\ as my classpath. The class I'm trying to execute is called GiftShop and is located C:\J21Work\Giftshop.class. It's compiled fine, as have the other two classes in the package, but now it's throwing up that all too common 'Exception in thread "main" java.lang.NoClassDefFoundError' which I've read up to mean my classpath is set up wrong.
Any solutions I've found I either can't make sense of or aren't working. I've had to mess around with it all so much to try and get there because my laptop seems to need completely restarting every time to change the classpath for java to notice. I'm know it must be really simple to suss and I'm missing something so obvious but I've deleted and done it all from scratch so many times and tried so many different folder destinations for all this stuff which has finally got me this far....now I can't get the last bit to run.
I know I've only just come back and I'm already asking for help, buuuuut:
1. I'm pretty sure this is actually dead simple and I'm an idiot
2. In the past I have put hours of effort into this site... in stuff that has since been ditched so I have nothing to show for it...but yeah .
3. I'll love you <3.
Edit!! Never mind!! I did it all on my own! HAH. Take that Java!!
Anyway, I suppose now this topic needs a different subject matter. Erm....anyone learnt a new language lately? Any totally embarrassing and stupid mistakes you wanna share?