not setting CLASSPATH in bash

Setting environment variables in bash requires no spaces before or after the =. Furthermore, you’d have to put export in front or it won’t actually provide that var to java. Lastly, don’t use CLASSPATH at all; java can run many apps, apps need different classpath, so the concept of a global classpath makes no sense. Just use the -cp parameter.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top