fix bug for classpath not set