Having some trouble building a simple app.

Patrick Twohig p-twohig@ieee.org
Wed Feb 22 04:29:00 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This may sound dumb, and I've read the docs, at least I think I've read
all that applies to this problem I've been having.  The program just
test a threading scheme I'm going to put into a bigger project (which
compiles just fine in eclipse).  One is called "ThreadWorker" and one is
called "ThreadTester".  I do this..

gcj -c ThreadWorker.java

and it works just fine, making ThreadWorker.o

But, then I do this....

gcj -c ThreadTester.java

I get this

ThreadTester.java:13: error: Class `ThreadWorker' not found in type
declaration.
                        tmp = new Thread(new ThreadWorker());
						^

Both .java files are part of the same package and live in the same
directory!  I even tried invoking gcj as gcj -I.  I'm not sure what i'm
doing wrong and why it errors out at that point.  Does anybody have any
suggestions?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD++mU4zW84eMcVisRAnd+AKDcHPNQKj6FsT8BzMnjFpj3CJsUtwCdELoJ
HfZ70QBCJmIOnll+cp2zD8E=
=yrAB
-----END PGP SIGNATURE-----



More information about the Java mailing list