javac
java
面向包
![(%UJ7KI3LL~$7`K5[[0W@5.jpg](https://cdn.nlark.com/yuque/0/2022/jpeg/26686146/1652061606542-1b54f4db-4f05-4a02-9db7-73f66d564186.jpeg#clientId=u20dda0dc-cb71-4&crop=0&crop=0&crop=1&crop=1&from=drop&id=ua02c57e1&name=%28%25UJ7KI3LL~%247%60K5%5B%5B0W%405.jpg&originHeight=270&originWidth=1192&originalType=binary&ratio=1&rotation=0&showTitle=false&size=42327&status=done&style=none&taskId=u29641619-728a-42dd-8a8e-33f5e862d9c&title=)
配置环境变量ClassPath,添加指定包名
Java调用类和包的顺序:
java\lib\ext中—->Manifest.mf(jar包配置文件)指定的(类或者包)—>当前目录中(是否有类或者包)—>环境变量CLASSPATH中指定(是否有类或者包)
Manifest-Version: 1.0
Created-By: 1.8.0_311 (Oracle Corporation)
Class-Path: B.jar(指定类或者包)