前面的都是语法错误,
private volatile Thread timer;
不知道是什么东西。后面两个是包找不到,考虑放到同一个目录下,或则设置classpath,或则在javac和java时家-cp参数。