This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: compiling error question
- To: "Matthew R. MacIntyre" <matt at matty dot dyndns dot org>, <java at gcc dot gnu dot org>
- Subject: Re: compiling error question
- From: "Anthony Green" <green at redhat dot com>
- Date: Thu, 20 Sep 2001 07:36:55 -0700
- References: <15273.63104.620226.620505@granger.hogwarts.ca>
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