I was trying the BottonDemo.java from Oracel tutorials (the source code is pasted below). It compiled fine, but gave me a java.lang.noclassdeffounderror at run time. I tried to google what this error is about and found this post helpful (http://javaeesupportpatterns.blogspot.com/2012/06/javalangnoclassdeffounderror-how-to.html). I kinda understand what the author says, but I am a complete newbie, so I am still clueless as how to solve this problem.
Since I just started learning Java and CS, so my questions are: what should I do next? (including reading books, tutorials, etc. ???) Should I just leave this problem alone at this point since I just started learning? Thanks a lot!!
Are you compiling your code from the command line? If so, can you please paste the commands you used to both compile and run the example code? Make sure you copy it from the command line so we can see the directory you are currently in, e.g.:
The quieter you are, the more you are able to hear.
Slime does not pay. Always keep your tiny ad dry.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth