由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Question on classpath
相关主题
ant javac error in eclipse 3.0?Re: How to compile a Java program with import my own package in UNIX
how to set CLASSPATH under Linux??[转载] Anybody tried "gcj"?
为何运行JAVA出现这个错误?入门Java CLASSPATH问题:
java dumb questionJBuilder question
where to execute java program?java & XML 2 example problem
菜鸟恳请牛人们指点another question driving me crazy...
servlet读取directory的基本问题weird class definition
UnsatisfiedLinkErrorUnix: where to execute java program?
相关话题的讨论汇总
话题: class话题: classpath话题: question话题: directory话题: abstract
进入Java版参与讨论
1 (共1页)
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?

1 (共1页)
进入Java版参与讨论
相关主题
Unix: where to execute java program?where to execute java program?
com.sun.tools.javac.Main 问题菜鸟恳请牛人们指点
[转载] how to compile Azureus??servlet读取directory的基本问题
一个怪异的java 运行问题UnsatisfiedLinkError
ant javac error in eclipse 3.0?Re: How to compile a Java program with import my own package in UNIX
how to set CLASSPATH under Linux??[转载] Anybody tried "gcj"?
为何运行JAVA出现这个错误?入门Java CLASSPATH问题:
java dumb questionJBuilder question
相关话题的讨论汇总
话题: class话题: classpath话题: question话题: directory话题: abstract