FreeKB - Java Programming Understanding classpath
Java Programming - Understanding classpath

Simply put, CLASSPATH is a variable that contains a directory, like this:

# Linux

# Windows


Typically, JARs are located in the CLASSPATH directory. A Java application uses CLASSPATH to know what directory contains the JARs.

# Linux

# Windows


On Linux, this command will temporarily update the CLASSPATH variable to contain a certain directory.



The echo command can be used to verify that CLASSPATH now contains /opt/jars.



Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter af2e7 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |