Back
Close

Computing with Data

elgeish
585.9K views

Classpath

# modifying the class path in bash, using : as separator 
# (period corresponds to current directory)
export CLASSPATH=/home/joe/classes:/home/jane/classes:.

# alternatively, the class path can be passed as an 
# argument to java
java -cp /home/joe/classes:/home/jane/classes:. program.java
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io