apply correct classpath and lilbrary path