Java class 如何从同一目录加载?

How Java class are loaded from the same directory?

如何使用 class 路径启动的 java 应用程序:如果 lib 目录包含多个 JAR,"lib/*" 将选择 class 加载一样class? 每次的举止都一样吗?使用不同的服务器?

来自the documentation

The order in which the JAR files in a directory are enumerated in the expanded class path is not specified and may vary from platform to platform and even from moment to moment on the same machine. A well-constructed application should not depend upon any particular order. If a specific order is required, then the JAR files can be enumerated explicitly in the class path.