There's a few problems here.
Firstly, javac compiles your code in class files (.class). It doesn't run the code, but converts the source code into a form that can be run.
When compiling code, all the .java files should be structured according to their package. So you can't arbitrarily decide to put some java files in one folder and some in another folder. For example, if a java file specifies "package com.mycompany" and your src directory is specified as src then the java file must be located in "/src/com/mycompany".
In your code, when you need to reference other code (usually external libraries) that have already been compiled into .class files, you can specify the classpath (which is why it is called as such). Note, I'll repeat this for clarity, this is not for .java files, but for .class files. Sometimes lots of .class files are packaged together into a single archive file, called a java archive, or 'jar'.
Also note, on unix systems that "/common" is an absolute path. If you want a relative path, you should specify "./common".
Additionally, the classpath separator is ";" not ":".
So in summary, if none of your java files specify an explicit package, simply put all your .java files in the same directory (I suggest ./src). Then run javac -sourcepath ./src *.java or simply javac *.java from the src directory.
There's more on managing source files and class files here.
javacthe main class. The compiler will draw in the resources in needs based on the imports in the file.