java -Djava.library.path=/usr/local/lib -classpath
/usr/local/share/java/zmq.jar:. hwclient
In the above example why is there “:.” after the classpath?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
:The colon is the classpath separator..The fullstop is a reference to the current directoryBecause the classpath overrides the default reference to the current directory the above line adds both /usr/local/share/java/zmq.jar and the current directory to the classpath. Without
:.there would be no reference to the current directory and the JVM wouldnt find the hwclient class.