compiling error question
Anthony Green
green@redhat.com
Thu Sep 20 07:32:00 GMT 2001
Mathhew wrote:
> [matt@granger src]$ cd ..
> [matt@granger foo]$ gcj -c -o src/Hanoi.o src/Hanoi.java
> src/Hanoi.java:16: Class `DataNotReadyException' not found in
> `throws'.
> public void solve(boolean print) throws DataNotReadyException;
> ^
> 1 error
> [matt@granger foo]$
>
You need to add "src" to you classpath.
> I'm trying to get my project to run everything from a top-level
> Makefile.am, rather than having Makefile.am's littered in every
> directory, and this error prevents me from doing so. Is there a way
> around this?
I've had great success doing this with automake 1.5. Check out the Makefile.am
files in http://sources.redhat.com/rhug
AG
More information about the Java
mailing list