OK, I am using Notepad++ to do my coding. I've been using java for a few years, till now I haven't concerned myself with packages and specifying CLASSPATH because I haven't needed them, my programs are self contained, the files are all grouped together, and I compile and run from the command line.
I understand that packages are essentially a mechanism for organizing classes, and that a CLASSPATH tells the JVM where to find user defined classes and packages.
OK, so I take my program and add a line package stuff; to the top of each file.
Ok I am surprised to learn that the only way I can run the program is from c:\ and specifying the fully qualified name of the main class i.e
I can't run the program from the directory where it is stored, and using a CLASSPATH eqial to the where the program is stored doesn't seem to make any difference to anything, I still need the fully qualified name.
AM I making myself clear? Is this what is supposed to happen? I did some poking around in Google, and the SUn java Tutorial, but couldn't answer this specific question. I realize that there is no value added to using packages and classpath under these conditions, but still I am surprised it doesn't work.