Sounds as a classpath problem. Find out the directory which contains the "common_db" subdirectory, and add this directory to your classpath, or compile the code using this classpath.
Suppose that the files are located in the directory:
D:\JavaSource\common_db\
Now you should compile your project:
javac -classpath D:\JavaSource ProjectRelated.java
Hope it helps.