问:java寻找classpath里的class有顺序吗?系统指定classpath的顺序如何影响编译?
为什么有import package的程序
当classpath中.(表示当前路径)在package所在路径的时候就不能通过编译
显示
bad class file: C:\JavaClasses\Window.class
class file contains wrong class: avi.Window
Please remove or make sure it appears in the correct subdirectory of the
classpath.
Window screen = new Window("example1.java","bold","red",72);
^
1 error
Process completed.
而把.(代表当前路径)移动到包所在的路径后面的时候就能通过编译了呢?
java在寻找classpath的时候到底遵循什么规则呢?
迷惑中!虽然问题解决了,希望大家都来讨论讨论呀,来者有分