Update classpath and fix warning in main program