I am new to java. I want to know when I write
import {SOME_PACKAGE_NAME}
where does it search for the folder? Is there any general folder or mapping file where it search for given package?
All the directories of your project and from Jar's will be added to class path. From there classes being imported from the classpath
.
You will see errors if compiler doesn't found them at compile time.
If they are not found at runtime ClassNotFoundException's/NoClassDefFoundError
's based on the case occurs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With