Consider if I have got a Package in my C:\x\y\z and another package in D:\m\n\o.
How can I access them in my java program? Do I need to set any path?
Consider if I have got a Package in my C:\x\y\z and another package in
Share
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.
You need to set your classpath to add each directory. Assuming that your package structure begins underneath each of those directories:
See docs.