Class files don't go to java's bin directory. They stay in the same directory as the source file (.java), unless you tell the compiler to store them in a different location (using the -d flag of the java compiler)