Does anyone know how i can use packages to subdivide my .class files? Some reason i can't get it to work. Say if my main directory where my files are stored is C:\Java. If i put package Java; at the top of a file and compile then run i keep getting "NoClassDefFoundError". My CLASSPATH environment variable is set in the autoexec.bat file to the directory C:\Java so even if i try and run using this "C:\java -classpath C:\Java; myFile" it still fails to work. Any suggestions?