c*****t 发帖数: 562 | 1 I have a class which extends an abstract class, they are in the same
directory. The abstract class compiled fine, but I have to add the current
directory to the classpath or the extended class won't be able to find the
abstract class.
Is this normal? I thought java should be able to find and use anything in the
same directory. Or is it because it extends another class? | xt 发帖数: 17532 | 2
the
No. It's you, not Java.
【在 c*****t 的大作中提到】 : I have a class which extends an abstract class, they are in the same : directory. The abstract class compiled fine, but I have to add the current : directory to the classpath or the extended class won't be able to find the : abstract class. : Is this normal? I thought java should be able to find and use anything in the : same directory. Or is it because it extends another class?
|
|