This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: compiling error question


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]