Also, instead setting the environment variable, try to pass the classpath as an argument, like follows.